Skip to content
Snippets Groups Projects
Commit 1c58c67d authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] web_settings_dashboard: access error

When a user has the access rights "Configuration" or "Access Rights"
regarding the "Administration" module category, the click on the
"Settings" menu leads to an access error.

This is because the dashboard fetches data about the number of installed
modules ("installed_apps"), which requires access to "ir.module.module".
Since it is not easily possible to hide a parts of the dashboard (the
static templates do not recognize the "groups" attribute), we simply
hide the dashboard for these users.

opw-678531
parent 9516bad3
No related branches found
No related tags found
No related merge requests found
......@@ -4,5 +4,5 @@
<field name="name">Dashboard</field>
<field name="tag">web_settings_dashboard.main</field>
</record>
<menuitem name="Dashboard" id="web_dashboard_menu" action="web_settings_dashboard_action" parent="base.menu_administration" sequence="-1" />
<menuitem name="Dashboard" id="web_dashboard_menu" action="web_settings_dashboard_action" parent="base.menu_administration" sequence="-1" groups="base.group_system"/>
</odoo>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment