projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e16e37c
)
[FIX] Import : Any exception should be raised in well-manner
author
Jay (Open ERP)
<jvo@tinyerp.com>
Wed, 12 May 2010 12:11:08 +0000
(17:41 +0530)
committer
Jay (Open ERP)
<jvo@tinyerp.com>
Wed, 12 May 2010 12:11:08 +0000
(17:41 +0530)
bzr revid: jvo@tinyerp.com-
20100512121108
-nun18cptfdjuxuqu
bin/osv/orm.py
patch
|
blob
|
history
diff --git
a/bin/osv/orm.py
b/bin/osv/orm.py
index
e5a417c
..
21e680f
100644
(file)
--- a/
bin/osv/orm.py
+++ b/
bin/osv/orm.py
@@
-985,7
+985,8
@@
class orm_template(object):
msg = _('Insertion Failed! ' + e[1])
return (-1, res, 'Line ' + str(counter) +' : ' + msg, '' )
#Raising Uncaught exception
- raise
+ return (-1, res, 'Line ' + str(counter) +' : ' + str(e), '' )
+
for lang in translate:
context2 = context.copy()
context2['lang'] = lang