From 767aaeb8cc7845d868cb2e5d9dda20e7454a8c41 Mon Sep 17 00:00:00 2001 From: Cecile Tonglet Date: Tue, 3 Dec 2013 10:24:33 +0100 Subject: [PATCH] [FIX] Wrong error message when data cannot be loaded at module loading bzr revid: cto@openerp.com-20131203092433-uu1brp5csqvvd8yh --- openerp/tools/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/tools/convert.py b/openerp/tools/convert.py index a64aabf2df6..4598e2e384a 100644 --- a/openerp/tools/convert.py +++ b/openerp/tools/convert.py @@ -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