[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:
committed by
Arnold Moyaux
parent
e25b9c9ffa
commit
b2ec6bc7ad
@@ -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),
|
||||
'&',
|
||||
('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"/>
|
||||
|
||||
Reference in New Issue
Block a user