bugfix csv import : a wrong variable name was crashing the server

bzr revid: bch-0e246f06a2d8cba7403a1902600c4884c0e8f6c5
This commit is contained in:
bch 2007-04-10 09:06:06 +00:00
parent 0e3bc08cc1
commit 39c54916db
1 changed files with 2 additions and 1 deletions

View File

@ -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 = []