[FIX] properly set website_multilang attribute

This commit is contained in:
Fabien Meghazi 2014-05-19 12:33:47 +02:00
parent 35efb5bf5f
commit 2df2da6514
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ 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)
request.website_multilang = request.website_enabled and func and func.routing.get('multilang', True)
if request.website_enabled:
if func: