Skip to content
Snippets Groups Projects
Commit 938502aa authored by Olivier Dony's avatar Olivier Dony
Browse files

[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
parent f5f76094
Branches
Tags
No related merge requests found
......@@ -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']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment