添加功能

This commit is contained in:
zhou
2025-08-13 17:07:09 +08:00
parent df804de927
commit 803a616fcc
@@ -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: