[FIX] csv data loading

bzr revid: jth@openerp.com-20100611152549-np935rqv1dthmph3
This commit is contained in:
Julien Thewys
2010-06-11 17:25:49 +02:00
parent a98b7828da
commit 8e2f0e4e30
+1 -1
View File
@@ -666,7 +666,7 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, **kwargs):
process_sql_file(cr, fp)
elif ext == '.csv':
noupdate = (kind == 'init')
tools.convert_csv_import(cr, module_name, file, id_map, mode, noupdate)
tools.convert_csv_import(cr, module_name, pathname, file.read(), id_map, mode, noupdate)
elif ext == '.yml':
tools.convert_yaml_import(cr, module_name, file, id_map, mode, noupdate)
else: