diff --git a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py index 6d7f92359..9cc656444 100644 --- a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py +++ b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py @@ -139,7 +139,7 @@ class HrAttendanceDetail(models.Model): checkin_times = sorted(attendance_records.mapped('checkin_time')) check_in = checkin_times[0] if len(checkin_times) == 1: - check_out = 0 + check_out = None else: check_out = checkin_times[-1] if check_in is not None: