Correction for terp file processing when init and update xml are empty.

bzr revid: jvo@tinyerp.com-20090217130200-06hgldmh757pacqt
This commit is contained in:
Jay (Open ERP) 2009-02-17 18:32:00 +05:30
parent ca83e62de6
commit ccf9eda508
1 changed files with 5 additions and 0 deletions

View File

@ -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)