From 4d4121b3b5077cab3b066ab3d56e2ab70814111f Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Fri, 15 Aug 2025 18:24:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/models/hr_attendance_detail_wechat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py index d67d5687a..47010b6fb 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: