From ffd72b7f5821c354ad502ae1fa6d18fb7b38e3d7 Mon Sep 17 00:00:00 2001 From: Odoo Online Date: Sun, 17 May 2015 17:43:21 +0200 Subject: [PATCH] [FIX] website: http cache some handler dont have routing --- 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 ec386709633..e969191fcde 100644 --- a/addons/website/models/ir_http.py +++ b/addons/website/models/ir_http.py @@ -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: