diff --git a/yuthon_hr_attendance/models/yuthon_holiday_statement.py b/yuthon_hr_attendance/models/yuthon_holiday_statement.py index ee1bc5c6c..205bc6342 100644 --- a/yuthon_hr_attendance/models/yuthon_holiday_statement.py +++ b/yuthon_hr_attendance/models/yuthon_holiday_statement.py @@ -43,7 +43,7 @@ class InheritHrLeave(models.Model): if rec.batch_id: rec.application_reason = rec.batch_id.text rec.caption = rec.batch_id.name - rec.length_leave = rec.number_of_days_display + rec.length_leave = rec.number_of_days elif rec.hour_batch_id: rec.application_reason = rec.hour_batch_id.text rec.caption = rec.hour_batch_id.name