[FIX] Load translations for selection fields

Selection fields in the new QWeb reports aren't being translated, because the context with the language isn't being passed.
This commit is contained in:
andreparames 2014-08-28 16:41:45 +01:00
parent a062d3b0ee
commit 0908376221
1 changed files with 1 additions and 1 deletions

View File

@ -692,7 +692,7 @@ class SelectionConverter(osv.AbstractModel):
value = record[field_name]
if not value: return ''
selection = dict(fields.selection.reify(
cr, uid, record._model, column))
cr, uid, record._model, column, context=context))
return self.value_to_html(
cr, uid, selection[value], column, options=options)