Merge pull request !4583 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2025-08-15 10:25:21 +00:00
committed by Gitee
@@ -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: