<?xml version="1.0"?>
<form string="Route">
                    <field name="company_id" invisible="1"/>
                    <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" placeholder="e.g. Two-steps reception"/></h1>
                        </div>
                    <group>
                        <group>
                            <field name="sequence" string="Sequence" groups="base.group_no_one"/>
                            <field name="supplied_wh_id" groups="base.group_no_one"/>
                            <field name="active" invisible="1"/>
                            <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
                        </group>
                    </group>
                    <group string="Applicable On" name="route_selector">
                        <p colspan="2" class="oe_grey">Select the places where this route can be selected</p>
                        <group>
                            <field name="product_categ_selectable" string="Product Categories"/>
                            <field name="product_selectable" string="Products"/>
                            <field name="packaging_selectable" string="Packagings" groups="product.group_stock_packaging"/>
                        </group>
                        <group>
                            <label for="warehouse_selectable" string="Warehouses"/>
                            <div class="o_row">
                                <field name="warehouse_selectable" class="oe_inline" nolabel="1"/>
                                <field name="warehouse_domain_ids" invisible="1"/>
                                <field name="warehouse_ids" widget="many2many_tags" class="o_field_highlighted" placeholder="e.g. Central Warehouse" nolabel="1" attrs="{'invisible': [('warehouse_selectable', '=', False)]}"/>
                            </div>
                        </group>
                    </group>
                    <group string="Rules">
                        <field name="rule_ids" colspan="2" nolabel="1" context="{'default_company_id': company_id, 'form_view_ref':'stock.view_route_rule_form'}">
                            <tree>
                                <field name="sequence" widget="handle"/>
                                <field name="action"/>
                                <field name="location_src_id" options="{'no_create': True}"/>
                                <field name="location_dest_id" options="{'no_create': True}"/>
                            </tree>
                        </field>
                    </group>
                    </sheet>
                </form>
            