Monday, August 7, 2023
1 change · master
Enhancements to existing features
The File menu now only shows the Add to dashboard option to users who have permission to create dashboards. This reduces confusion and prevents users from seeing an action they cannot complete, while keeping existing dashboard templates and dashboards working normally.
Original PR description
This PR hides the "Add to dashboard" menu item in File top bar menu from users who don't have rights to add new dashboards. The basic idea is to overwrite join_spreadsheet_session function in `documents.document` model. Hence no additional RPC call, and templates & dashboards can bypass. task [3378496](https://www.odoo.com/web#id=3378496&cids=1&menu_id=4720&action=333&active_id=2328&model=project.task&view_type=form)