<?xml version="1.0"?>
<form string="Rules">
                    <sheet>
                        <widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
                        <div class="oe_title">
                            <label for="name"/>
                            <h1><field name="name"/></h1>
                        </div>
                        <group>
                            <group>
                                <field name="active" invisible="1"/>
                                <field name="company_id" invisible="1"/>
                                <field name="picking_type_code_domain" invisible="1"/>
                                <field name="action"/>
                                <field name="picking_type_id"/>
                                <field name="location_src_id" options="{'no_create': True}" attrs="{'required': [('action', 'in', ['pull', 'push', 'pull_push'])]}"/>
                                <field name="location_dest_id" options="{'no_create': True}"/>
                                <field name="auto" attrs="{'invisible': [('action', 'not in', ['push', 'pull_push'])]}"/>
                                <field name="procure_method" attrs="{'invisible': [('action', 'not in', ['pull', 'pull_push'])]}"/>
                            </group>
                            <group>
                                <div colspan="2">
                                    <label for="rule_message" invisible="1"/>
                                    <div>
                                        <field name="rule_message" readonly="1"/>
                                    </div>
                                </div>
                            </group>
                        </group>
                        <group>
                            <group name="apply_on" string="Applicability">
                                <field name="route_id"/>
                                <field name="warehouse_id" attrs="{'invisible': [('action', '=', 'push')]}" groups="base.group_no_one"/>
                                <field name="route_company_id" invisible="1"/>
                                <field name="company_id" options="{'no_create': True}" attrs="{'required': [('action', '=', 'push')]}" groups="base.group_multi_company"/>
                                <field name="sequence" string="Sequence" groups="base.group_no_one"/>
                            </group>
                            <group name="propagation_group" string="Propagation" attrs="{'invisible': [('action', '=', 'push')]}" groups="base.group_no_one">
                                <field name="group_propagation_option"/>
                                <field name="group_id" attrs="{'invisible': [('group_propagation_option', '!=', 'fixed')], 'required': [('group_propagation_option', '=', 'fixed')]}"/>
                                <field name="propagate_cancel"/>
                                <field name="propagate_warehouse_id"/>
                            </group>
                            <group string="Options" attrs="{'invisible': [('action', 'not in', ['pull', 'push', 'pull_push'])]}">
                                <field name="partner_address_id" attrs="{'invisible': [('action', '=', 'push')]}"/>
                                <label for="delay"/>
                                <div><field name="delay" class="oe_inline"/> days</div>
                            </group>
                        </group>
                    </sheet>
                </form>
            