From 68b652b5b693812643896552d12e83f68c415e41 Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Tue, 7 Sep 2021 04:45:13 +0000 Subject: [PATCH] [FIX] core: regenerate user groups view after forcing demo data Since https://github.com/odoo/odoo/commit/8a3e1a0ccdad25ba5b4b99639bdaeb9073a27f1f, `_update_user_groups_view` is called only once per module installation. However, module installation is not the only scenario when data files are loaded and hence we need to add the method call. --- opw-2602541 closes odoo/odoo#76869 X-original-commit: a46d20c89c24a4e60faef09cf8ad7721bd29d6cc Signed-off-by: Raphael Collet (rco) --- odoo/modules/loading.py | 1 + 1 file changed, 1 insertion(+) diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py index ecdc5605f0d..3a046613336 100644 --- a/odoo/modules/loading.py +++ b/odoo/modules/loading.py @@ -117,6 +117,7 @@ def force_demo(cr): env = api.Environment(cr, SUPERUSER_ID, {}) env['ir.module.module'].invalidate_cache(['demo']) + env['res.groups']._update_user_groups_view() def load_module_graph(cr, graph, status=None, perform_checks=True,