!4533 添加功能

Merge pull request !4533 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-08-14 01:53:17 +00:00
committed by Gitee
+1 -1
View File
@@ -126,7 +126,7 @@ class HrAttendance(models.Model):
('checkin_time', '>=', fields.Datetime.to_string(utc_start)),
('checkin_time', '<', fields.Datetime.to_string(utc_end))
]
detail_records = self.env['hr.attendance.detail'].search([domain])
detail_records = self.env['hr.attendance.detail'].search(domain)
if detail_records:
max_checkin_time = max(detail_records.mapped('checkin_time'))
vals['check_out'] = max_checkin_time