[FIX] ir_translation: fixed erro 'context_wo_lang is not defined'

bzr revid: qdp-launchpad@openerp.com-20130418114627-unmfdu6010hyc8xx
This commit is contained in:
Quentin (OpenERP) 2013-04-18 13:46:27 +02:00
parent 429ef87172
commit 9a21f819b6
1 changed files with 1 additions and 1 deletions

View 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),