Files
odoo_source/addons/hr_holidays/security
Agustín Castro Bugallo e2a2e9a5bb [FIX] hr_holidays: Explicitly set permit on rule
In v15, the rule `hr_leave_rule_employee_unlink` has been modified.
Because of that, during an upgrade to v15, the rule is reloaded from the
security xml.

If the rule had been edited and `perm_unlink` was set to False, since its
value is not explicitly stated in the xml, the upgrade will fail by
violating the constraint `ir_rule_no_access_rights`.

Related:
https://github.com/odoo/upgrade/pull/2127
https://github.com/odoo/odoo/pull/65361

closes odoo/odoo#88908

X-original-commit: b3994a0277a165ceedd2e8df1f31da7044b8d33e
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-04-15 18:07:56 +02:00
..