[FIX] ir_translation: fixed erro 'context_wo_lang is not defined'
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Thu, 18 Apr 2013 11:46:27 +0000 (13:46 +0200)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Thu, 18 Apr 2013 11:46:27 +0000 (13:46 +0200)
bzr revid: qdp-launchpad@openerp.com-20130418114627-unmfdu6010hyc8xx

openerp/addons/base/ir/ir_translation.py

index c37695b..acb6daa 100644 (file)
@@ -191,7 +191,7 @@ class ir_translation(osv.osv):
             context_wo_lang = context.copy()
             context_wo_lang.pop('lang', None)
             model.write(cr, uid, record.res_id, {field: value}, context=context_wo_lang)
-        return self.write(cr, uid, id, {'src': value}, context=context_wo_lang)
+        return self.write(cr, uid, id, {'src': value}, context=context)
 
     _columns = {
         'name': fields.char('Translated field', required=True),