Skip to content

Commit

Permalink
[IMP] base_group_backend: allow read on calendar.event and remove
Browse files Browse the repository at this point in the history
Dashboard menu for backend users
  • Loading branch information
Clément Mombereau committed Dec 20, 2024
1 parent dc0a644 commit 9f1a9be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base_group_backend/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"base",
"base_install_request", # weird module, we need to survive with it
"mail",
"calendar",
"spreadsheet_dashboard",
],
"maintainers": ["FranzPoize", "bealdav"],
"demo": [
Expand Down
5 changes: 5 additions & 0 deletions base_group_backend/data/ir_ui_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@
<!-- Allow to avoid to display App menu for backend users -->
<field name="groups_id" eval="[(4, ref('base.group_user'), 0)]" />
</record>
<record model="ir.ui.menu" id="spreadsheet_dashboard.spreadsheet_dashboard_menu_root">
<!-- Allow to avoid to display Dashboard menu for backend users -->
<field name="groups_id" eval="[(4, ref('base.group_user'), 0)]" />
</record>


</odoo>
2 changes: 2 additions & 0 deletions base_group_backend/security/ir.model.access.csv
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ backend_ui_users_res_partner_industry,backend_ui_users_res_partner_industry,base
backend_ui_users_res_users_identitycheck,backend_ui_users_res_users_identitycheck,base.model_res_users_identitycheck,group_backend_ui_users,1,1,1,0
backend_ui_users_res_bank,backend_ui_users_res_bank,base.model_res_bank,group_backend_ui_users,1,0,0,0
backend_ui_users_res_partner_bank,backend_ui_users_res_partner_bank,base.model_res_partner_bank,group_backend_ui_users,1,0,0,0
backend_ui_users_res_calendar_event,backend_ui_users_res_calendar_event,calendar.model_calendar_event,group_backend_ui_users,1,0,0,0
backend_ui_users_res_calendar_attendee,backend_ui_users_res_calendar_attendee,calendar.model_calendar_attendee,group_backend_ui_users,1,0,0,0

0 comments on commit 9f1a9be

Please sign in to comment.