[FIX] mrp : BoM name now translated on product's on_change (Support Case:4563)

lp bug: https://launchpad.net/bugs/734273 fixed

bzr revid: ach@tinyerp.com-20110321091808-xeluwmfp642kqnz3
This commit is contained in:
Anup (OpenERP)
2011-03-21 14:48:08 +05:30
parent 82de026e8f
commit fada51b094
+4
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}