<?xml version="1.0" ?>
<odoo>
     <record id="view_exception_rule_form_inherit" model="ir.ui.view">
        <field name="name">exception.rule.form</field>
        <field name="model">exception.rule</field>
        <field name="inherit_id" ref="base_exception.view_exception_rule_form" />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='model']" position="after">
                <field
                    name="stage_ids"
                    widget="many2many_tags"
                    attrs="{'invisible': [('model', '!=', 'crm.lead')]}"
                />
            </xpath>
        </field>
    </record>
</odoo>
