summaryrefslogtreecommitdiff
path: root/bin/addons
diff options
context:
space:
mode:
authorced <>2007-09-26 05:20:40 +0000
committerced <>2007-09-26 05:20:40 +0000
commit1bbeb8a91ef0ffb1d8edd05a660370b5e49a8e17 (patch)
tree4369a1b3aec7861201a4694ea13a0d8b3a6f4c4b /bin/addons
parent2fc1c2f265aeffba8f3d9ad3118657cfdf0076cb (diff)
Fix uninitialize variable when installing module with only demo data
bzr revid: ced-15e1edbd640d935c9da4ff611728e4ad02d6050f
Diffstat (limited to 'bin/addons')
-rw-r--r--bin/addons/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py
index 101698b8852..2f4d99be238 100644
--- a/bin/addons/__init__.py
+++ b/bin/addons/__init__.py
@@ -225,9 +225,9 @@ def load_module_graph(cr, graph, status=None, **kwargs):
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, mode=mode, noupdate=True)
+ tools.convert_csv_import(cr, m, os.path.basename(xml), tools.file_open(opj(m, xml)).read(), idref, noupdate=True)
else:
- tools.convert_xml_import(cr, m, tools.file_open(opj(m, xml)).read(), idref, mode=mode, noupdate=True, **kwargs)
+ tools.convert_xml_import(cr, m, tools.file_open(opj(m, xml)).read(), idref, noupdate=True, **kwargs)
cr.execute('update ir_module_module set demo=%s where name=%s', (True, package.name))
package_todo.append(package.name)
cr.execute("update ir_module_module set state='installed' where state in ('to upgrade', 'to install') and name=%s", (package.name,))