[FIX] update the module list when upgrading the modules.

bzr revid: christophe@cobalt-20081215134906-zvavnfbnb29e0053
This commit is contained in:
Christophe Simonis 2008-12-15 14:49:06 +01:00
parent 50fb0c6959
commit d9b561cd5b
1 changed files with 1 additions and 3 deletions

View File

@ -547,9 +547,7 @@ def load_modules(db, force_demo=False, status=None, update_module=False):
modobj = pool.get('ir.module.module')
logger.notifyChannel('init', netsvc.LOG_INFO, 'updating modules list')
cr.execute("select id from ir_module_module where state in ('to install','to upgrade') and name=%s", ('base',))
if cr.rowcount:
modobj.update_list(cr, 1)
modobj.update_list(cr, 1)
mods = [k for k in tools.config['init'] if tools.config['init'][k]]
if mods: