From 174cd2aeee78a2d66c31cf3bbe3cccc32ebda282 Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Fri, 22 Dec 2017 12:50:32 +0100 Subject: [PATCH] [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 --- addons/website/models/ir_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):