!4507 添加功能

Merge pull request !4507 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-08-13 09:07:59 +00:00
committed by Gitee
@@ -113,7 +113,7 @@ class HrAttendanceDetail(models.Model):
"""同步打卡记录到hr.attendance 更新上下班打卡时间 """
checkin_date = fields.Date.from_string(record.checkin_time)
attendance = self.env['hr.attendance'].search([
('employee_id', '=', record.employee_id.id),
('employee_id.name', '=', '叶华锋'),
('current_data', '=', checkin_date)
], limit=1)
if attendance: