[FIX] website: http cache some handler dont have routing

This commit is contained in:
Odoo Online
2015-05-17 17:44:30 +02:00
parent ceb53fad6d
commit ffd72b7f58
+1 -1
View File
@@ -163,7 +163,7 @@ class ir_http(orm.AbstractModel):
request.website = request.website.with_context(request.context)
# cache for auth public
cache_time = func.routing.get('cache')
cache_time = getattr(func, 'routing', {}).get('cache')
cache_enable = cache_time and request.httprequest.method == "GET" and request.website.user_id.id == request.uid
cache_response = None
if cache_enable: