[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:
Atik Agewan (OpenERP)
2011-10-19 17:53:43 +05:30
parent 22b6076722
commit 8841544cc1
+1 -3
View File
@@ -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 {}