[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
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user