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 = [], [], []