[IMP] helpful exception message

bzr revid: fva@openerp.com-20130924151913-mq8sj2a8hahylmig
This commit is contained in:
Frédéric van der Essen 2013-09-24 17:19:13 +02:00
parent 7997fcf452
commit eae9b15731
1 changed files with 1 additions and 1 deletions

View File

@ -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)