diff --git a/yuthon_hr_attendance/wizard/export_date_wizard.py b/yuthon_hr_attendance/wizard/export_date_wizard.py index dbcf5bc01..f8319b6b0 100644 --- a/yuthon_hr_attendance/wizard/export_date_wizard.py +++ b/yuthon_hr_attendance/wizard/export_date_wizard.py @@ -270,7 +270,7 @@ class ExportDateWizard(models.TransientModel): 'end_time': (over_line.end_time + timedelta(hours=8)).strftime('%Y-%m-%d %H:%M:%S') if over_line and over_line.end_time else '', 'carry_forward_date': record.carry_forward_date, 'carry_forward_quantity': record.carry_forward_quantity, - 'carry_result': carry_result_dict.get(record.carry_result, '') if record.carry_result else '', + 'carry_result': carry_result_dict.get(record.carry_result or (over_line.carry_result if over_line else None), '') if (record.carry_result or (over_line and over_line.carry_result)) else '', } export_data.append(row_data)