[IMP]: onchange on product in bom

bzr revid: ksa@tinyerp.com-20110927094724-jec0yn3osjjb00ef
This commit is contained in:
Kirti Savalia (OpenERP) 2011-09-27 15:17:24 +05:30
parent 2391006300
commit 02bddc336b
1 changed files with 6 additions and 0 deletions

View File

@ -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.
-