From 2b4d6bb821cba997001225b19e40ab34bb17f196 Mon Sep 17 00:00:00 2001 From: "Harry (Open ERP)" Date: Tue, 2 Feb 2010 14:34:27 +0530 Subject: [PATCH] [FIX]orm : format_trace is not available in traceback module. format_exc use instand of that bzr revid: hmo@tinyerp.com-20100202090427-r2eefz8j6ee00uy1 --- bin/osv/orm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 223c2875f03..4d874824196 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -165,7 +165,7 @@ class browse_record(object): else: self.logger.notifyChannel("browse_record", netsvc.LOG_WARNING, "Field '%s' does not exist in object '%s': \n%s" % ( - name, self, ''.join(traceback.format_trace()))) + name, self, ''.join(traceback.format_exc()))) raise KeyError("Field '%s' does not exist in object '%s'" % ( name, self)) @@ -203,7 +203,7 @@ class browse_record(object): # Where did those ids come from? Perhaps old entries in ir_model_dat? self.logger.notifyChannel("browse_record", netsvc.LOG_WARNING, "No datas found for ids %s in %s \n%s" % ( - ids, self, ''.join(traceback.format_trace()))) + ids, self, ''.join(traceback.format_exc()))) raise KeyError('Field %s not found in %s'%(name,self)) # create browse records for 'remote' objects for data in datas: