summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorced <>2007-07-10 15:24:45 +0000
committerced <>2007-07-10 15:24:45 +0000
commitbf4f26ed8275bfecd04d8d00a78bf7bdebc4729e (patch)
treeadd066286191765338603f050d94e7df829c3817
parent515960334ccd92e586edaed307c7cdee94627422 (diff)
kernel: add mode to import csv file
bzr revid: ced-8edff534005ea96ca04b995a4fd75735820d991c
-rw-r--r--bin/addons/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py
index c644468e172..648bb5dce64 100644
--- a/bin/addons/__init__.py
+++ b/bin/addons/__init__.py
@@ -213,7 +213,7 @@ def load_module_graph(cr, graph, status={}):
name, ext = os.path.splitext(xml)
logger.notifyChannel('init', netsvc.LOG_INFO, 'addon:%s:loading %s' % (m, xml))
if ext == '.csv':
- tools.convert_csv_import(cr, m, os.path.basename(xml), tools.file_open(opj(m, xml)).read(), idref, noupdate=True)
+ tools.convert_csv_import(cr, m, os.path.basename(xml), tools.file_open(opj(m, xml)).read(), idref, mode=mode, noupdate=True)
else:
tools.convert_xml_import(cr, m, tools.file_open(opj(m, xml)).read(), idref)
cr.execute('update ir_module_module set demo=%s where name=%s', (True, package.name))