[IMP]: onchange on product in bom
bzr revid: ksa@tinyerp.com-20110927094724-jec0yn3osjjb00ef
This commit is contained in:
parent
2391006300
commit
02bddc336b
|
@ -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.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue