From 5c45e6efcda506a5a2b983d4edea188e03263966 Mon Sep 17 00:00:00 2001 From: ahmed-nouri051 Date: Wed, 9 Jul 2025 15:21:21 +0200 Subject: [PATCH] fix it date field --- odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py b/odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py index 8d416c8c6..de9944792 100644 --- a/odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py +++ b/odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py @@ -2414,8 +2414,8 @@ class HrPayslipRun(models.Model): [data] = self.read() from_date = str(self.date_start) to_date = str(self.date_end) - holiday_start_date = str(self.holiday_start_date) - holiday_end_date = str(self.holiday_end_date) + holiday_start_date = str(self.holiday_start_date) if self.holiday_start_date else False + holiday_end_date = str(self.holiday_end_date) if self.holiday_end_date else False start_time = time.time() #worked_days, emps, dictionary = [], [], []