Skip to content
Snippets Groups Projects
Commit 7d732b10 authored by Xavier Morel's avatar Xavier Morel
Browse files

[FIX] broken translation cache for absent translation of 'false'

parents cab80a02 740d5c6c
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@
import cStringIO
import datetime
import functools
import operator
import itertools
import time
......@@ -253,7 +252,7 @@ class ir_fields_converter(orm.Model):
tnx_ids = Translations.search(
cr, uid, [('type', 'in', types), ('src', '=', src)], context=context)
tnx = Translations.read(cr, uid, tnx_ids, ['value'], context=context)
result = tnx_cache[types][src] = map(operator.itemgetter('value'), tnx)
result = tnx_cache[types][src] = [t['value'] for t in tnx if t['value'] is not False]
return result
def _str_to_selection(self, cr, uid, model, column, value, context=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment