| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | <record id="view_product_replenish_form_inherit_stock" model="ir.ui.view"> |
| 4 | <field name="name">product.replenish.form.inherit.stock</field> |
| 5 | <field name="model">product.replenish</field> |
| 6 | <field name="inherit_id" ref="stock.view_product_replenish"/> |
| 7 | <field name="arch" type="xml"> |
| 8 | <xpath expr="//field[@name='route_id']" position="after"> |
| 9 | <label for="supplier_id" invisible="not show_vendor"/> |
| 10 | <div class="o_row"> |
| 11 | <field name="show_vendor" invisible="1"/> |
| 12 | <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}"/> |
| 13 | </div> |
| 14 | </xpath> |
| 15 | </field> |
| 16 | </record> |
| 17 | </odoo> |