diff options
| author | Romain Derie <rde@odoo.com> | 2017-12-22 12:50:32 +0100 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2017-12-22 15:44:39 +0100 |
| commit | 174cd2aeee78a2d66c31cf3bbe3cccc32ebda282 (patch) | |
| tree | 197912e1957ddc2b9936ecb3b890643e57ceec64 | |
| parent | 4f4e686fb275ad657e40205d27b89df86b764ee5 (diff) | |
[FIX] website: website had incomplete context
Before this commit, website had incomplete context.
It was causing website.menu to not be translated correctly because lang was
not set on website.
Now, since the website has the context correctly binded, menus are translated
opw-787012
| -rw-r--r-- | addons/website/models/ir_http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/models/ir_http.py b/addons/website/models/ir_http.py index 696f69e8ae3..65c514487a2 100644 --- a/addons/website/models/ir_http.py +++ b/addons/website/models/ir_http.py @@ -83,7 +83,7 @@ class Http(models.AbstractModel): super(Http, cls)._add_dispatch_parameters(func) if request.routing_iteration == 1: - request.website = request.website.with_context(context) + request.website = request.website.with_context(request.context) @classmethod def _get_languages(cls): |
