[FIX] l10n_in,account_audit_trail: access right issue

To reproduce:
- Go in admin user
- activate Audit Trail in the settings
- Log out
- Connect as demo
- Go to the audit trail report
- Activate the filter Update Only
=> Access right error

The demo user doesn't have the right access
for the domain of the filter.
We should hide this filter for these users

closes odoo/odoo#149783

Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
This commit is contained in:
Gauthier Wala (gawa)
2024-01-26 12:45:38 +00:00
parent 5d64f5845b
commit 347ea9ee61
2 changed files with 2 additions and 2 deletions
@@ -27,7 +27,7 @@
<field name="account_audit_log_move_id"/>
<field name="author_id"/>
<field name="date" string="Date"/>
<filter string="Update Only" name="update_only" domain="[('tracking_value_ids', '!=', False)]"/>
<filter string="Update Only" name="update_only" domain="[('tracking_value_ids', '!=', False)]" groups="base.group_system"/>
<group expand="0" string="Group By">
<filter string="date" name="group_by_date" domain="[]" context="{'group_by': 'date'}"/>
<filter string="Journal Entry" name="group_by_log_move_id" domain="[]" context="{'group_by': 'res_id'}"/>
@@ -25,7 +25,7 @@
<field name="l10n_in_audit_log_account_move_id"/>
<field name="author_id"/>
<field name="date" string="Date"/>
<filter string="Update Only" name="update_only" domain="[('tracking_value_ids', '!=', False)]"/>
<filter string="Update Only" name="update_only" domain="[('tracking_value_ids', '!=', False)]" groups="base.group_system"/>
<group expand="0" string="Group By">
<filter string="date" name="group_by_date" domain="[]" context="{'group_by': 'date'}"/>
</group>