diff --git a/yuthon_hr_attendance/models/yuthon_vacation_reports.py b/yuthon_hr_attendance/models/yuthon_vacation_reports.py index 083f2b180..21e4792df 100644 --- a/yuthon_hr_attendance/models/yuthon_vacation_reports.py +++ b/yuthon_hr_attendance/models/yuthon_vacation_reports.py @@ -2270,7 +2270,7 @@ class VacationMealLine(models.Model): duration = (end_time - start_time).total_seconds() / 3600 rec.duration = duration or '' - rec.reasons = go_approval_id.details + rec.reasons = go_approval_id.reason_application rec.start_date = start_date rec.start_time = start_time rec.end_time = end_time diff --git a/yuthon_hr_attendance/views/yuthon_vacation_reports_views.xml b/yuthon_hr_attendance/views/yuthon_vacation_reports_views.xml index 1a5d263c8..1bd0dfacc 100644 --- a/yuthon_hr_attendance/views/yuthon_vacation_reports_views.xml +++ b/yuthon_hr_attendance/views/yuthon_vacation_reports_views.xml @@ -4,7 +4,7 @@ vacation.meal.line.tree vacation.meal.line - +
@@ -19,6 +19,7 @@ +