From 9d51409bd80a713813fbdacb5855346d907a596c Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Wed, 9 Jun 2010 16:07:29 +0200 Subject: [PATCH] [IMP] Change the message for the developer if the rpc method return None bzr revid: stephane@openerp.com-20100609140729-it5qqr3qmyc5zc3p --- bin/osv/osv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/osv.py b/bin/osv/osv.py index 6f85cd6d2ca..5f583b894c9 100644 --- a/bin/osv/osv.py +++ b/bin/osv/osv.py @@ -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()