From ccf9eda5083b0e689708efc1522b0e4263835990 Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Tue, 17 Feb 2009 18:32:00 +0530 Subject: [PATCH] Correction for terp file processing when init and update xml are empty. bzr revid: jvo@tinyerp.com-20090217130200-06hgldmh757pacqt --- bin/addons/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index 8bcb50d27a9..63c533f76ac 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -593,6 +593,11 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, **kwargs): idref = {} status['progress'] = (float(statusi)+0.4) / len(graph) + + mode = 'update' + if package.state == 'to install': + mode = 'init' + if hasattr(package, 'init') or hasattr(package, 'update') or package.state in ('to install', 'to upgrade'): has_updates = True init_module_objects(cr, m, modules)