summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2020-03-04 14:54:52 +0000
committerLucas Lefèvre <lul@odoo.com>2020-03-04 16:15:56 +0000
commit7032dde60a60c6fba730c236b89189a8f56f2bd0 (patch)
tree7e79af74858bb5410cfad0aaf504f319d8badc76 /addons/web/static/src/xml
parent01497474d7dea1f1f8f24230995d94edcf210602 (diff)
[IMP] web: Add quick security access to debug menu
PURPOSE Debugging access issues can quickly be a pain. The goal is to allow to easily debug an access rights issue from the debug tools. SPECIFICATION In the debug tools, add the following two new items: - View Access Rights - View Record Rules closes odoo/odoo#46906 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/debug.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/debug.xml b/addons/web/static/src/xml/debug.xml
index ff4613f26b6..4a53168c84b 100644
--- a/addons/web/static/src/xml/debug.xml
+++ b/addons/web/static/src/xml/debug.xml
@@ -38,6 +38,9 @@
<a role="menuitem" href="#" data-action="get_view_fields" class="dropdown-item">View Fields</a>
<a role="menuitem" href="#" data-action="manage_filters" class="dropdown-item">Manage Filters</a>
<a role="menuitem" href="#" data-action="translate" class="dropdown-item">Technical Translation</a>
+ <div t-if="manager.canSeeModelAccess || manager.canSeeRecordRules" class="dropdown-divider" role="separator"/>
+ <a t-if="manager.canSeeModelAccess" role="menuitem" href="#" data-action="actionModelAccess" class="dropdown-item">View Access Rights</a>
+ <a t-if="manager.canSeeRecordRules" role="menuitem" href="#" data-action="actionRecordRules" class="dropdown-item">View Record Rules</a>
</t>
</t>
</t>