From e2a2e9a5bb6db231754e296d457a5e9487ad9f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Castro=20Bugallo?= Date: Thu, 14 Apr 2022 12:09:06 +0000 Subject: [PATCH] [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 --- addons/hr_holidays/security/hr_holidays_security.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/hr_holidays/security/hr_holidays_security.xml b/addons/hr_holidays/security/hr_holidays_security.xml index fe372159ae6..53b28632795 100644 --- a/addons/hr_holidays/security/hr_holidays_security.xml +++ b/addons/hr_holidays/security/hr_holidays_security.xml @@ -65,6 +65,7 @@ +