[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
This commit is contained in:
Olivier Dony 2014-09-17 15:09:55 +02:00
parent f5f76094a7
commit 938502aa37
1 changed files with 1 additions and 0 deletions

View File

@ -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']: