diff options
| author | Jeremy Kersten <jke@odoo.com> | 2014-10-22 16:20:05 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2014-10-22 16:20:05 +0200 |
| commit | add28795fb7c02815212b605216d0932075fa6d4 (patch) | |
| tree | 96e28efb04bd0ad693fb14332371129465dc22c9 | |
| parent | 118b5073e005bcfdc37f557a4741439ffc798cd0 (diff) | |
[FIX] ir_action: update context to get the real binary, else we have a traceback when we edit/view an ir_action_client where param is a binary field. Because we do safe_eval from the length and not from the binary
| -rw-r--r-- | openerp/addons/base/ir/ir_actions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openerp/addons/base/ir/ir_actions.py b/openerp/addons/base/ir/ir_actions.py index 21ad57f5d03..623fb54b49f 100644 --- a/openerp/addons/base/ir/ir_actions.py +++ b/openerp/addons/base/ir/ir_actions.py @@ -1130,6 +1130,8 @@ class ir_actions_act_client(osv.osv): def _get_params(self, cr, uid, ids, field_name, arg, context): result = {} + # Need to remove bin_size from context, to obtains the binary and not the length. + context = dict(context, bin_size_params_store=False) for record in self.browse(cr, uid, ids, context=context): result[record.id] = record.params_store and eval(record.params_store, {'uid': uid}) or False return result |
