[IMP] mrp, mrp_byproduct: hide field for kit BoM

This commit hides the field 'Routing' and column "Consumed" in manufactoring
order if the product to make is of type 'kit'. Those field are specific
to manufacturing products

PR:22085
TASK:38933
This commit is contained in:
Prakash Prajapati
2018-07-26 15:22:34 +02:00
committed by Simon Lejeune
parent 1c6aad274d
commit 045b409349
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -32,7 +32,7 @@
<field name="product_qty"/>
<field name="product_uom_id" options="{'no_open':True,'no_create':True}" groups="uom.group_uom"/>
</div>
<field name="routing_id" groups="mrp.group_mrp_routings"/>
<field name="routing_id" attrs="{'invisible': [('type','=','phantom')]}" groups="mrp.group_mrp_routings"/>
</group>
<group>
<field name="code"/>
@@ -67,7 +67,7 @@
<field name="product_qty"/>
<field name="product_uom_id" options="{'no_open':True,'no_create':True}" groups="uom.group_uom"/>
<field name="attribute_value_ids" widget="many2many_tags" options="{'no_create': True}" domain="[('product_ids.product_tmpl_id', '=', parent.product_tmpl_id)]" groups="product.group_product_variant"/>
<field name="operation_id" groups="mrp.group_mrp_routings" domain="[('routing_id', '=', parent.routing_id)]" options="{'no_quick_create':True,'no_create_edit':True}"/>
<field name="operation_id" groups="mrp.group_mrp_routings" domain="[('routing_id', '=', parent.routing_id)]" options="{'no_quick_create':True,'no_create_edit':True}" attrs="{'column_invisible': [('parent.type', '=', 'phantom')]}"/>
</tree>
</field>
</page>
+1 -1
View File
@@ -7,7 +7,7 @@
<field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
<field name="arch" type="xml">
<notebook position="inside">
<page string="Byproducts">
<page string="Byproducts" attrs="{'invisible': [('type','=','phantom')]}">
<field name="sub_products">
<tree string="Byproducts" editable="top">
<field name="product_id"/>