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