diff options
| author | Raphael Collet <rco@openerp.com> | 2016-08-18 14:30:08 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2016-08-31 17:21:58 +0200 |
| commit | 75dc39e0428465f38b2d3c4840764cdb0fac69db (patch) | |
| tree | 25c7c817d9e6631df40ab39e75ed78e90b1e2ad3 /addons/web/controllers/main.py | |
| parent | 4033ccc129e5463eb97b5d867a13220c10cd0dc6 (diff) | |
[REF] openerp.http: make `request.context` consistent with `request.env.context`
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 |
