bugfix csv import : a wrong variable name was crashing the server
bzr revid: bch-0e246f06a2d8cba7403a1902600c4884c0e8f6c5
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user