From 013243e70809cf5c94cc75018ad4fae3b9570955 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 29 Dec 2010 18:48:51 +0100 Subject: [PATCH] [FIX] addons: make sure base demo and tests are reloaded as well upon update bzr revid: odo@openerp.com-20101229174851-zcflitp2ht2xl52o --- bin/addons/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index 82bab896fbf..29f81f97928 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -819,6 +819,8 @@ def load_modules(db, force_demo=False, status=None, update_module=False): report = tools.assertion_report() # NOTE: Try to also load the modules that have been marked as uninstallable previously... STATES_TO_LOAD = ['installed', 'to upgrade', 'uninstallable'] + if 'base' in tools.config['update']: + cr.execute("update ir_module_module set state=%s where name=%s", ('to upgrade', 'base')) graph = create_graph(cr, ['base'], force) if not graph: logger.notifyChannel('init', netsvc.LOG_CRITICAL, 'module base cannot be loaded! (hint: verify addons-path)')