-
- Downloads
[FIX] base_automation: avoid access right issues filter domains
If some filter domains use M2O to models current user cannot access,
using sudo() permit to filter even when user cannot access linked
models.
for the accuracy of the fix, add a unit test which reproduce the exact
reported bug.
closes odoo/odoo#43582
Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
Showing
- addons/base_automation/models/base_automation.py 2 additions, 2 deletionsaddons/base_automation/models/base_automation.py
- addons/base_automation/security/ir.model.access.csv 3 additions, 1 deletionaddons/base_automation/security/ir.model.access.csv
- addons/base_automation/tests/test_base_automation.py 58 additions, 0 deletionsaddons/base_automation/tests/test_base_automation.py
- addons/base_automation/tests/test_models.py 16 additions, 0 deletionsaddons/base_automation/tests/test_models.py
Please register or sign in to comment