[FIX] stock : decription field not translated according to the user language (Ref : Case 594181)
bzr revid: skh@openerp.com-20130626130820-dqlifitughjr7pcd
This commit is contained in:
parent
f95572d649
commit
636fc01ea1
|
@ -1910,7 +1910,8 @@ class stock_move(osv.osv):
|
|||
"""
|
||||
if not prod_id:
|
||||
return {}
|
||||
lang = False
|
||||
user = self.pool.get('res.users').browse(cr, uid, uid)
|
||||
lang = user and user.lang or False
|
||||
if partner_id:
|
||||
addr_rec = self.pool.get('res.partner').browse(cr, uid, partner_id)
|
||||
if addr_rec:
|
||||
|
|
Loading…
Reference in New Issue