[MERGE] lp:877998

bzr revid: rco@openerp.com-20111019133225-j2obshkltratgbf5
This commit is contained in:
Raphael Collet
2011-10-19 15:32:25 +02:00
+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 {}