[IMP] no need for an explicit string conversion when using %s

bzr revid: xmo@openerp.com-20130212120609-mfntrs7vm62fxpim
This commit is contained in:
Xavier Morel
2013-02-12 13:06:09 +01:00
parent d21d70753f
commit a030c9f2cf
+1 -1
View File
@@ -162,7 +162,7 @@ class object_proxy(object):
def execute_cr(self, cr, uid, obj, method, *args, **kw):
object = pooler.get_pool(cr.dbname).get(obj)
if not object:
raise except_osv('Object Error', 'Object %s doesn\'t exist' % str(obj))
raise except_osv('Object Error', "Object %s doesn't exist" % obj)
return getattr(object, method)(cr, uid, *args, **kw)
def execute_kw(self, db, uid, obj, method, args, kw=None):