[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:
parent
a062d3b0ee
commit
0908376221
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue