diff options
| author | HDA (OpenERP) <hda@tinyerp.com> | 2010-03-03 12:51:09 +0530 |
|---|---|---|
| committer | HDA (OpenERP) <hda@tinyerp.com> | 2010-03-03 12:51:09 +0530 |
| commit | bca733707d0ea11c8c6b57dbde69b062e2c35ee3 (patch) | |
| tree | 36347fbd3e3fd8b49e43e696abdee9c4ad49042a /bin/addons/__init__.py | |
| parent | 33749177de30de1b98cf9317c60e2394aeca94dd (diff) | |
added noupdate=1 if csv is in init_xml
bzr revid: hda@tinyerp.com-20100303072109-qoi1h70ohfsjq96h
Diffstat (limited to 'bin/addons/__init__.py')
| -rw-r--r-- | bin/addons/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index b147db854ef..2910b9fe7c1 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -634,7 +634,10 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, **kwargs): name, ext = os.path.splitext(filename) fp = tools.file_open(opj(m, filename)) if ext == '.csv': - tools.convert_csv_import(cr, m, os.path.basename(filename), fp.read(), idref, mode=mode) + noupdate=False + if kind == 'init': + noupdate=True + tools.convert_csv_import(cr, m, os.path.basename(filename), fp.read(), idref, mode=mode, noupdate=noupdate) elif ext == '.sql': queries = fp.read().split(';') for query in queries: |
