[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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user