summaryrefslogtreecommitdiff
path: root/addons/web/controllers/main.py
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2016-08-23 16:02:08 +0200
committerRaphael Collet <rco@openerp.com>2016-08-23 16:04:43 +0200
commit20b1a9bcaafbd42161dbcd8b744fc4c0cdb0c72f (patch)
tree3718e24fa185c81755c768ee7937e06fbcc5d423 /addons/web/controllers/main.py
parenta765b3e643f4ad98f319b983dda313e0ebdf931f (diff)
[FIX] web: pass context in kwargs, otherwise it is taken as `load`
Diffstat (limited to 'addons/web/controllers/main.py')
-rw-r--r--addons/web/controllers/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index e4e7f9d9a42..741c1210e8d 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -1093,7 +1093,7 @@ class Action(http.Controller):
except Exception:
action_id = 0 # force failed read
- base_action = Actions.read([action_id], ['type'], request.context)
+ base_action = Actions.read([action_id], ['type'], context=request.context)
if base_action:
ctx = request.context
action_type = base_action[0]['type']
@@ -1101,7 +1101,7 @@ class Action(http.Controller):
ctx.update({'bin_size': True})
if additional_context:
ctx.update(additional_context)
- action = request.session.model(action_type).read([action_id], False, ctx)
+ action = request.session.model(action_type).read([action_id], False, context=ctx)
if action:
value = clean_action(action[0])
return value