Skip to content

Commit

Permalink
[FIX] portal_backend: fix context key
Browse files Browse the repository at this point in the history
closes #145

Signed-off-by: Juan José Scarafía <jjs@adhoc.com.ar>
  • Loading branch information
bruno-zanotti committed Nov 30, 2023
1 parent a3c94c1 commit de31982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal_backend/models/ir_ui_menu.py
Expand Up @@ -11,7 +11,7 @@ def load_menus(self, debug):
# It is important to do it here to capture the case when portal_backend is already installed and the user
# installs another module with a parent menu without internal group.
parent_menus_wo_group = self.sudo().search([('parent_id', '=', False), ('groups_id', '=', False)])
parent_menus_wo_group.with_context('install_mode').write({
parent_menus_wo_group.with_context(from_config=True).write({
'groups_id': [Command.link(self.env.ref('base.group_user').id)]
})
return super().load_menus(debug=debug)

0 comments on commit de31982

Please sign in to comment.