From 0df7a1ca2f86b63911a5822ccccf4ab00bcd341c Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 6 Jul 2016 16:22:40 +0200 Subject: [PATCH] [FIX] base: decode params_store content The parameter bin_size=True will display the size of the binary field. Fixes #12681 --- openerp/addons/base/ir/ir_actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/addons/base/ir/ir_actions.py b/openerp/addons/base/ir/ir_actions.py index 737f416d47d..3733fc5006a 100644 --- a/openerp/addons/base/ir/ir_actions.py +++ b/openerp/addons/base/ir/ir_actions.py @@ -1195,7 +1195,7 @@ 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) + context = dict(context, bin_size_params_store=False, bin_size=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