diff --git a/yuthon_hr_attendance/models/yuthon_holiday_statement.py b/yuthon_hr_attendance/models/yuthon_holiday_statement.py index 6b8fbf2f9..ee1bc5c6c 100644 --- a/yuthon_hr_attendance/models/yuthon_holiday_statement.py +++ b/yuthon_hr_attendance/models/yuthon_holiday_statement.py @@ -47,7 +47,7 @@ class InheritHrLeave(models.Model): elif rec.hour_batch_id: rec.application_reason = rec.hour_batch_id.text rec.caption = rec.hour_batch_id.name - rec.length_leave = rec.hour_batch_id.leave_hours /8 + rec.length_leave = rec.leave_hours /8 else: rec.application_reason = '' rec.caption = '' diff --git a/yuthon_hr_attendance/views/yuthon_holiday_statement.xml b/yuthon_hr_attendance/views/yuthon_holiday_statement.xml index e34bb8698..d6d09fc15 100644 --- a/yuthon_hr_attendance/views/yuthon_holiday_statement.xml +++ b/yuthon_hr_attendance/views/yuthon_holiday_statement.xml @@ -9,7 +9,7 @@ - +