[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:
Stephane Wirtel
2010-06-09 16:07:29 +02:00
parent 470677d9d4
commit 9d51409bd8
+1 -1
View File
@@ -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()