<form string="Rules">
                    <sheet>
                        <widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active"/>
                        <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}" required="action in ['pull', 'push', 'pull_push']"/>
                                <field name="location_dest_id" options="{'no_create': True}"/>
                                <field name="location_dest_from_rule" invisible="action not in ['pull', 'pull_push']" groups="base.group_no_one"/>
                                <field name="auto" invisible="action not in ['push', 'pull_push']"/>
                                <field name="procure_method" 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" invisible="action == 'push'" groups="base.group_no_one"/>
                                <field name="route_company_id" invisible="1"/>
                                <field name="company_id" options="{'no_create': True}" 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">
                                <field name="group_propagation_option"/>
                                <field name="group_id" invisible="group_propagation_option != 'fixed'" required="group_propagation_option == 'fixed'"/>
                                <field name="propagate_cancel" invisible="action == 'push'"/>
                                <field name="propagate_warehouse_id" invisible="action == 'push'"/>
                            </group>
                            <group string="Options" invisible="action not in ['pull', 'push', 'pull_push']">
                                <field name="partner_address_id" invisible="action == 'push'"/>
                                <label for="delay"/>
                                <div><field name="delay" class="oe_inline"/> days</div>
                            </group>
                        </group>
                        <field name="push_domain" invisible="action not in ['push', 'pull_push']" widget="domain" options="{'model': 'stock.move'}"/>
                    </sheet>
                </form>