bugfix csv import : a wrong variable name was crashing the server
bzr revid: bch-0e246f06a2d8cba7403a1902600c4884c0e8f6c5
This commit is contained in:
parent
0e3bc08cc1
commit
39c54916db
|
@ -391,7 +391,8 @@ def convert_csv_import(cr, module, fname, csvcontent, idref={}, mode='init'):
|
||||||
# pool = osv.osv.FakePool(module)
|
# pool = osv.osv.FakePool(module)
|
||||||
|
|
||||||
input=StringIO.StringIO(csvcontent)
|
input=StringIO.StringIO(csvcontent)
|
||||||
data = list(csv.reader(input, quotechar='"', delimiter=','))
|
reader = csv.reader(input, quotechar='"', delimiter=',')
|
||||||
|
fields = reader.next()
|
||||||
|
|
||||||
uid = 1
|
uid = 1
|
||||||
datas = []
|
datas = []
|
||||||
|
|
Loading…
Reference in New Issue