From 938502aa37b53f218a2b48e1fb36f45cb6fa67ef Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 17 Sep 2014 15:09:55 +0200 Subject: [PATCH] [FIX] loading: always process auto-installed modules for new databases If the server was started without -i or -u and happened to initialize a fresh database, auto-installed modules that depend on `base` only would stay in status "to install" without actually being installed (until the next installation round was triggered). This was of little consequence in 7.0, but causes a crash in 8.0. Fixes #953 --- openerp/modules/loading.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openerp/modules/loading.py b/openerp/modules/loading.py index 6112ef07f7c..5ee4029074e 100644 --- a/openerp/modules/loading.py +++ b/openerp/modules/loading.py @@ -277,6 +277,7 @@ def load_modules(db, force_demo=False, status=None, update_module=False): if not openerp.modules.db.is_initialized(cr): _logger.info("init db") openerp.modules.db.initialize(cr) + update_module = True # process auto-installed modules tools.config["init"]["all"] = 1 tools.config['update']['all'] = 1 if not tools.config['without_demo']: