From 39c54916dbba536e8b34d8706ef8557dbd2700da Mon Sep 17 00:00:00 2001 From: bch <> Date: Tue, 10 Apr 2007 09:06:06 +0000 Subject: [PATCH] bugfix csv import : a wrong variable name was crashing the server bzr revid: bch-0e246f06a2d8cba7403a1902600c4884c0e8f6c5 --- bin/tools/convert.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tools/convert.py b/bin/tools/convert.py index 08ddad2ea47..8773228c97f 100644 --- a/bin/tools/convert.py +++ b/bin/tools/convert.py @@ -391,7 +391,8 @@ def convert_csv_import(cr, module, fname, csvcontent, idref={}, mode='init'): # pool = osv.osv.FakePool(module) input=StringIO.StringIO(csvcontent) - data = list(csv.reader(input, quotechar='"', delimiter=',')) + reader = csv.reader(input, quotechar='"', delimiter=',') + fields = reader.next() uid = 1 datas = []