[IMP] Change the message for the developer if the rpc method return None
bzr revid: stephane@openerp.com-20100609140729-it5qqr3qmyc5zc3p
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ class osv_pool(netsvc.Service):
|
||||
raise except_osv('Access Denied', 'Private methods (such as %s) cannot be called remotely.' % (method,))
|
||||
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
|
||||
if res is None:
|
||||
self.logger.warning('RPC methods cannot return `None` at the moment!')
|
||||
self.logger.warning('The method %s of the object %s can not return `None` at the moment!', method, obj )
|
||||
cr.commit()
|
||||
except Exception:
|
||||
cr.rollback()
|
||||
|
||||
Reference in New Issue
Block a user