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

This commit is contained in:
Xavier Morel 2014-07-11 15:46:12 +02:00
commit 7d732b1011
1 changed files with 1 additions and 2 deletions

View File

@ -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):