projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
118b507
)
[FIX] ir_action: update context to get the real binary, else we have a traceback...
author
Jeremy Kersten
<jke@odoo.com>
Wed, 22 Oct 2014 14:20:05 +0000
(16:20 +0200)
committer
Jeremy Kersten
<jke@odoo.com>
Wed, 22 Oct 2014 14:20:05 +0000
(16:20 +0200)
openerp/addons/base/ir/ir_actions.py
patch
|
blob
|
history
diff --git
a/openerp/addons/base/ir/ir_actions.py
b/openerp/addons/base/ir/ir_actions.py
index
21ad57f
..
623fb54
100644
(file)
--- 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