From 8a3e1a0ccdad25ba5b4b99639bdaeb9073a27f1f Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 2 Apr 2020 06:45:54 +0000 Subject: [IMP] ir.ui.view: call _update_user_groups_view() once per install This saves 1.5% of the total installation time. X-original-commit: afd39e1a9824252d13823e484c60ad813b9b51a6 --- odoo/modules/loading.py | 1 + 1 file changed, 1 insertion(+) (limited to 'odoo/modules/loading.py') diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py index e9c215dc49b..070bd325d18 100644 --- a/odoo/modules/loading.py +++ b/odoo/modules/loading.py @@ -527,6 +527,7 @@ def load_modules(db, force_demo=False, status=None, update_module=False): # STEP 6: verify custom views on every model if update_module: env = api.Environment(cr, SUPERUSER_ID, {}) + env['res.groups']._update_user_groups_view() View = env['ir.ui.view'] for model in registry: try: -- cgit v1.2.3