diff --git a/bin/tools/translate.py b/bin/tools/translate.py index 0af189b84c7..7bb61ac676e 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -461,10 +461,7 @@ def trans_generate(lang, modules, dbname=None): def_params = { 'string': ('wizard_field', lambda s: [encode(s)]), - 'selection': ('selection', lambda s: [encode(e[1]) for e in - (not callable(s) and s) or - (callable(s) and s(None, cr, uid, {})) - or [] ]), + 'selection': ('selection', lambda s: [encode(e[1]) for e in ((not callable(s)) and s or [])] ), 'help': ('help', lambda s: [encode(s)]), }