[FIX] Import should raise an uncaught exception if not identified

lp bug: https://launchpad.net/bugs/510600 fixed

bzr revid: jvo@tinyerp.com-20100122143908-7qxkxrmc5gcuwlq3
This commit is contained in:
Jay (Open ERP)
2010-01-22 20:09:08 +05:30
parent 2167877520
commit 20a4f9aa66
+2
View File
@@ -862,6 +862,8 @@ class orm_template(object):
if isinstance(e, osv.orm.except_orm ):
msg = _('Insertion Failed! ' + e[1])
return (-1, res, 'Line ' + str(counter) +' : ' + msg, '' )
#Raising Uncaught exception
raise
for lang in translate:
context2 = context.copy()
context2['lang'] = lang