Correction for terp file processing when init and update xml are empty.
bzr revid: jvo@tinyerp.com-20090217130200-06hgldmh757pacqt
This commit is contained in:
parent
ca83e62de6
commit
ccf9eda508
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue