[MERGE] lp:877998
bzr revid: rco@openerp.com-20111019133225-j2obshkltratgbf5
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