[FIX] restore request.website_multilang for templates
authorFabien Meghazi <fme@openerp.com>
Tue, 13 May 2014 10:07:20 +0000 (12:07 +0200)
committerFabien Meghazi <fme@openerp.com>
Tue, 13 May 2014 10:07:20 +0000 (12:07 +0200)
addons/website/models/ir_http.py

index 358f105..4f486b7 100644 (file)
@@ -51,6 +51,8 @@ class ir_http(orm.AbstractModel):
             # in all cases, website processes them
             request.website_enabled = True
 
+        request.website_multilang = request.website_enabled and func.routing.get('multilang', True)
+
         if request.website_enabled:
             if func:
                 self._authenticate(func.routing['auth'])