[FIX] Import on model ir.translation was broken because of a missing context

bzr revid: cto@openerp.com-20131112132747-bajrgbwlp0m3z92s
This commit is contained in:
Cecile Tonglet 2013-11-12 14:27:47 +01:00
parent a283d59024
commit 83f6778446
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ class ir_fields_converter(orm.Model):
if not isinstance(selection, (tuple, list)):
# FIXME: Don't pass context to avoid translations?
# Or just copy context & remove lang?
selection = selection(model, cr, uid)
selection = selection(model, cr, uid, context=None)
for item, label in selection:
labels = self._get_translations(
cr, uid, ('selection', 'model', 'code'), label, context=context)