diff --git a/addons/mrp/test/mrp_phantom_bom.yml b/addons/mrp/test/mrp_phantom_bom.yml index 6bb297fbcfb..7894fc81608 100644 --- a/addons/mrp/test/mrp_phantom_bom.yml +++ b/addons/mrp/test/mrp_phantom_bom.yml @@ -96,6 +96,12 @@ product_qty: 1.0 product_uom: product_uom_litre0 type: phantom +- + changes UOM and name if product change. +- + !python {model: mrp.bom}: | + production_id = self.browse(cr, uid, [ref('mrp_bom_orangejuice0')], context=context)[0] + self.onchange_product_id(cr, uid, [ref('mrp_bom_orangejuice0')], production_id.product_id.id, False) - I create bom lines for BoM for Orange Juice. -