summaryrefslogtreecommitdiff
path: root/odoo/modules
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2020-04-02 06:45:54 +0000
committerRaphael Collet <rco@odoo.com>2020-04-03 11:40:30 +0000
commit8a3e1a0ccdad25ba5b4b99639bdaeb9073a27f1f (patch)
treef823adf145ce115386ce11b2d57494d2fef7470a /odoo/modules
parenta233d534c2c4e9f1417c85ead92249a5d8c83b3a (diff)
[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
Diffstat (limited to 'odoo/modules')
-rw-r--r--odoo/modules/loading.py1
1 files changed, 1 insertions, 0 deletions
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: