From 9c6db587501c3c2ea1972ed33e8dc7c944db1ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Felipe=20Mil=C3=A9o?= Date: Wed, 4 Dec 2024 23:47:44 -0300 Subject: [PATCH] [FIX] plan overlap dates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luis Felipe Miléo --- hr_holidays_allocation_plan/models/hr_leave_allocation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hr_holidays_allocation_plan/models/hr_leave_allocation.py b/hr_holidays_allocation_plan/models/hr_leave_allocation.py index c727f0e..bf6e3dd 100644 --- a/hr_holidays_allocation_plan/models/hr_leave_allocation.py +++ b/hr_holidays_allocation_plan/models/hr_leave_allocation.py @@ -307,7 +307,7 @@ def _create_recurrent(self, employee, running_contracts): jump = True date_from = current_date - date_to = date_from + relativedelta(years=self.validity_period) + date_to = date_from + relativedelta(years=self.validity_period, days=-1) allocation = self.env["hr.leave.allocation"].create( {