[IMP] modules: don't mark all packages as 'update' unless necessary

When installing a database from scratch, marking all packages (in the
module graph) as 'update' forces the migration manager to retrieve all
migrations scripts... for nothing.

X-original-commit: fd8f3c73c8c30162034c7712fa0993e2408fba89
This commit is contained in:
Raphael Collet
2020-04-03 11:40:26 +00:00
parent 9702142204
commit 7030fc179d
-1
View File
@@ -356,7 +356,6 @@ def load_modules(db, force_demo=False, status=None, update_module=False):
odoo.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']:
tools.config["demo"]['all'] = 1