[FIX]: mrp: Fixed problem of lp:734273 by passing context properly in onchange instead of getting user lang manually

bzr revid: rpa@tinyerp.com-20111102100621-cxlpkgfsnxbqdlhs
This commit is contained in:
Rucha (Open ERP)
2011-11-02 15:36:21 +05:30
parent 2fdecf4717
commit 68139dca87
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -270,7 +270,6 @@ class mrp_bom(osv.osv):
"""
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)
+1 -1
View File
@@ -317,7 +317,7 @@
<field name="arch" type="xml">
<form string="Bill of Material">
<group colspan="4" col="6">
<field name="product_id" on_change="onchange_product_id(product_id, name)" select="1"/>
<field name="product_id" on_change="onchange_product_id(product_id, name, context)" select="1"/>
<field name="name" select="1"/>
<field name="code" select="1" string="Reference" groups="base.group_extended"/>
<newline/>