[Merge] Merged the branch of Anup for the fix if lp:734273

bzr revid: jvo@tinyerp.com-20110329120237-mirvr1eo2ofe1wym
This commit is contained in:
Jay Vora (OpenERP) 2011-03-29 17:32:37 +05:30
commit 82096674df
1 changed files with 4 additions and 0 deletions

View File

@ -251,6 +251,10 @@ class mrp_bom(osv.osv):
@param product_id: Changed product_id
@return: Dictionary of changed values
"""
if context is None:
context = {}
context['lang'] = self.pool.get('res.users').browse(cr,uid,uid).context_lang
if product_id:
prod = self.pool.get('product.product').browse(cr, uid, product_id, context=context)
v = {'product_uom': prod.uom_id.id}