<?xml version="1.0" encoding="utf-8"?> <odoo> <data> <record id="helpdesk_ticket_form_maintenance" model="ir.ui.view"> <field name="name">helpdesk.ticket.form.inherit.maintenance</field> <field name="model">helpdesk.ticket</field> <field name="inherit_id" ref="sh_all_in_one_helpdesk.helpdesk_ticket_form_view"/> <field name="priority" eval="18"/> <field name="arch" type="xml"> <xpath expr="//field[@name='priority']" position="after"> <field name="is_maintenance" invisible="1"/> <field name="maintenance_type_id" attrs="{'invisible':[('is_maintenance', '=', False)]}"/> <field name="date_fail" attrs="{'invisible':[('is_maintenance', '=', False)]}"/> <field name="fail_type" attrs="{'invisible':[('is_maintenance', '=', False)]}"/> </xpath> </field> </record> </data> </odoo>