diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-11-13 10:45:23 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-11-13 10:45:23 +0100 |
| commit | d26e3b8b334ae2e9034b37a0017e8bb58f1d425e (patch) | |
| tree | 1bd65ded1410e7f854e8bee72c4a745fde74e28f | |
| parent | 8c3cdce539d87775b59b3f2d5ceb433f995821bf (diff) | |
| parent | 83f6778446ca7b1eff9b68e020d7ec0a75b6afd1 (diff) | |
[FIX] ir_fields: call selection function with context=None instead of not passing argument. Same behaviour as previsously but does not break when have default value for context (eg: _get_language for ir.translation)
bzr revid: mat@openerp.com-20131113094523-67547nkfkfntjelb
| -rw-r--r-- | openerp/addons/base/ir/ir_fields.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openerp/addons/base/ir/ir_fields.py b/openerp/addons/base/ir/ir_fields.py index 09622dadd17..e1522123dcf 100644 --- a/openerp/addons/base/ir/ir_fields.py +++ b/openerp/addons/base/ir/ir_fields.py @@ -253,7 +253,7 @@ class ir_fields_converter(orm.Model): if not isinstance(selection, (tuple, list)): # FIXME: Don't pass context to avoid translations? # Or just copy context & remove lang? - selection = selection(model, cr, uid) + selection = selection(model, cr, uid, context=None) for item, label in selection: labels = self._get_translations( cr, uid, ('selection', 'model', 'code'), label, context=context) |
