[FIX] base: decode params_store content

The parameter bin_size=True will display the size of the binary field.

Fixes #12681
This commit is contained in:
Martin Trigaux 2016-07-06 16:22:40 +02:00
parent 5e466d3507
commit 0df7a1ca2f
No known key found for this signature in database
GPG Key ID: 7B0E288E7C0F83A7
1 changed files with 1 additions and 1 deletions

View File

@ -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