diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index 2938a566d0a..f7e291953d9 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -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: