From d9b561cd5b01e982c00c5c94bc13bf6ad21b140b Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 15 Dec 2008 14:49:06 +0100 Subject: [PATCH] [FIX] update the module list when upgrading the modules. bzr revid: christophe@cobalt-20081215134906-zvavnfbnb29e0053 --- bin/addons/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index fd7889bf268..e18213d466f 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -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: