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#44923 X-original-commit: 30e2153539643491fad889811a54a8e580fa9c58 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
545 B
545 B
| 1 | id | name | model_id:id | group_id:id | perm_read | perm_write | perm_create | perm_unlink |
|---|---|---|---|---|---|---|---|---|
| 2 | access_base_automation_lead_test | access_base_automation_lead_test | model_base_automation_lead_test | base.group_system | 1 | 1 | 1 | 1 |
| 3 | access_base_automation_line_test | access_base_automation_line_test | model_base_automation_line_test | base.group_system | 1 | 1 | 1 | 1 |
| 4 | access_base_automation_link_test | access_base_automation_link_test | model_base_automation_link_test | 1 | 1 | 1 | 1 | |
| 5 | access_base_automation_linked_test | access_base_automation_linked_test | model_base_automation_linked_test | 1 | 1 | 1 | 1 |