diff --git a/addons/website/models/ir_http.py b/addons/website/models/ir_http.py index f73138313ab..47c0853d6be 100644 --- a/addons/website/models/ir_http.py +++ b/addons/website/models/ir_http.py @@ -79,6 +79,9 @@ class ir_http(orm.AbstractModel): return self._dispatch() def _postprocess_args(self, arguments, rule): + if not getattr(request, 'website_enabled', False): + return super(ir_http, self)._postprocess_args(arguments, rule) + for arg, val in arguments.items(): # Replace uid placeholder by the current request.uid if isinstance(val, orm.browse_record) and isinstance(val._uid, RequestUID):