Skip to content

Commit

Permalink
[FIX] Fix broken translation cache for absent translation of 'false'
Browse files Browse the repository at this point in the history
  • Loading branch information
ccomb committed Jul 7, 2014
1 parent cd7e9a9 commit 740d5c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openerp/addons/base/ir/ir_fields.py
Expand Up @@ -2,7 +2,6 @@
import cStringIO
import datetime
import functools
import operator
import itertools
import time

Expand Down Expand Up @@ -253,7 +252,7 @@ def _get_translations(self, cr, uid, types, src, context):
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):
Expand Down

0 comments on commit 740d5c6

Please sign in to comment.