[IMP] mrp: BoM and product as readonly when a MO is set on UB.

Since commit 2bd10fa757 when the user specify a MO the
unbuild use the existing moves raw and moves finished in order to create the unbuild
moves. In this case the bom_id and the product_id is not needed since we don't generate
unbuild move from the BoM

This commit is related to task ID 39843.
This commit is contained in:
Darshil Trivedi
2018-11-28 11:50:24 +00:00
committed by Arnold Moyaux
parent e25b9c9ffa
commit b2ec6bc7ad
+2 -2
View File
@@ -113,13 +113,13 @@
</div>
<group>
<group>
<field name="product_id" domain="[('bom_ids', '!=', False)]"/>
<field name="product_id" domain="[('bom_ids', '!=', False)]" attrs="{'readonly':[('mo_id','!=',False)]}" force_save="1"/>
<field name="bom_id" domain="['|',
('product_id','=',product_id),
'&amp;',
('product_tmpl_id.product_variant_ids','=',product_id),
('product_id','=',False),
('type', '=', 'normal')]"/>
('type', '=', 'normal')]" attrs="{'readonly':[('mo_id','!=',False)]}" force_save="1"/>
<label for="product_qty"/>
<div class="o_row">
<field name="product_qty"/>