[Fix] MRP :IN BOM when Product is changed than Name Also changed
lp bug: https://launchpad.net/bugs/877998 fixed bzr revid: aag@tinyerp.com-20111019122343-mgb8cbjhypcbxcqi
This commit is contained in:
+1
-3
@@ -274,9 +274,7 @@ class mrp_bom(osv.osv):
|
||||
|
||||
if product_id:
|
||||
prod = self.pool.get('product.product').browse(cr, uid, product_id, context=context)
|
||||
v = {'product_uom': prod.uom_id.id}
|
||||
if not name:
|
||||
v['name'] = prod.name
|
||||
v = {'name': prod.name, 'product_uom': prod.uom_id.id}
|
||||
return {'value': v}
|
||||
return {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user