<xpath expr="//field[@name='route_id']" position="after">
                <label for="supplier_id" invisible="not show_vendor"/>
                <div class="o_row">
                    <field name="show_vendor" invisible="1"/>
                    <field name="supplier_id" invisible="not show_vendor" required="show_vendor" domain="[('product_tmpl_id', '=', product_tmpl_id)]" options="{'no_open': 1, 'no_create': 1}"/>
                </div>
            </xpath>