From 7030fc179d5cfb05e962fbac9ec5e82d55130218 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 2 Apr 2020 06:45:54 +0000 Subject: [PATCH] [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 --- odoo/modules/loading.py | 1 - 1 file changed, 1 deletion(-) diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py index 8cb50e68438..e9c215dc49b 100644 --- a/odoo/modules/loading.py +++ b/odoo/modules/loading.py @@ -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