From eae9b157313590084fbce975127f2ebfd800f2a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Tue, 24 Sep 2013 17:19:13 +0200 Subject: [PATCH] [IMP] helpful exception message bzr revid: fva@openerp.com-20130924151913-mq8sj2a8hahylmig --- addons/web/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 651e5c42a97..bcef905b3c4 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -1086,7 +1086,7 @@ class DataSet(http.Controller): return records if method.startswith('_'): - raise Exception("Access denied") + raise Exception("Access Denied: Underscore prefixed methods cannot be remotely called") return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)