<?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>