[FIX] Wrong error message when data cannot be loaded at module loading

bzr revid: cto@openerp.com-20131203092433-uu1brp5csqvvd8yh
This commit is contained in:
Cecile Tonglet 2013-12-03 10:24:33 +01:00
parent a283d59024
commit 767aaeb8cc
1 changed files with 1 additions and 1 deletions

View File

@ -927,7 +927,7 @@ def convert_csv_import(cr, module, fname, csvcontent, idref=None, mode='init',
result, rows, warning_msg, dummy = pool.get(model).import_data(cr, uid, fields, datas,mode, module, noupdate, filename=fname_partial)
if result < 0:
# Report failed import and abort module install
raise Exception(_('Module loading failed: file %s/%s could not be processed:\n %s') % (module, fname, warning_msg))
raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg))
if config.get('import_partial'):
data = pickle.load(file(config.get('import_partial')))
data[fname_partial] = 0