diff options
Diffstat (limited to 'addons/web/controllers/main.py')
| -rw-r--r-- | addons/web/controllers/main.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 186e9715a8c..55edef0a3ed 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -1102,14 +1102,14 @@ class Action(http.Controller): base_action = Actions.browse([action_id]).read(['type']) if base_action: - ctx = request.context + ctx = dict(request.context) action_type = base_action[0]['type'] if action_type == 'ir.actions.report.xml': ctx.update({'bin_size': True}) if additional_context: ctx.update(additional_context) - env = request.env(context=ctx) - action = env[action_type].browse([action_id]).read() + request.context = ctx + action = request.env[action_type].browse([action_id]).read() if action: value = clean_action(action[0]) return value |
