res_users.xml 781 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        
        <record model="ir.ui.view" id="res_users_form_inherit_maintenance">
            <field name="name">res.users.form.inherit.maintenance</field>
            <field name="model">res.users</field>
            <field name="inherit_id" ref="sh_all_in_one_helpdesk.sh_res_users_form_view"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='sh_portal_user_access']" position="before">
                    <field name="is_maintenance"/>
                    <field name="maintenance_position" attrs="{'invisible':[('is_maintenance', '=', False)],'required':[('is_maintenance','=',True)]}"/>
                </xpath>
            </field>
        </record>
    

    </data>
</odoo>