enable MRP view in product templates

This commit is contained in:
Jordi Ballester Alomar
2018-08-18 16:31:23 +02:00
committed by Lois Rilo
parent 73aef84ed0
commit 0a75eb43d6
6 changed files with 263 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
<?xml version="1.0"?>
<odoo>
<record id="product_template_only_form_view_mrp" model="ir.ui.view">
<field name="name">product.template.product.form.mrp</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<notebook position="inside">
<page name="mrp_multi_level" string="MRP" attrs="{'invisible': [('product_variant_count', '&gt;', 1)]}">
<group colspan="4" col="2">
<group>
<field name="mrp_exclude"/>
<field name="mrp_verified"/>
<field name="mrp_nbr_days"/>
<field name="mrp_transit_delay"/>
<field name="mrp_inspection_delay"/>
</group>
<group>
<field name="mrp_minimum_stock"/>
<field name="mrp_minimum_order_qty"/>
<field name="mrp_maximum_order_qty"/>
<field name="mrp_qty_multiple"/>
</group>
</group>
</page>
</notebook>
</field>
</record>
</odoo>