添加功能

This commit is contained in:
李鹏宇
2025-10-31 14:51:28 +08:00
parent 3b000f944e
commit da91a7e4d1
@@ -93,7 +93,7 @@ class HrAttendanceDetail(models.Model):
def _sync_to_hr_attendance(self, record):
"""同步打卡记录到hr.attendance 更新上下班打卡时间 """
current_date = fields.Date.today() + timedelta(hours=8)
current_date = record.checkin_time.date() + timedelta(hours=8)
self.env["hr.attendance.detail"].compute_attendance_detail(record.employee_id, current_date)
def compute_attendance_detail(self, employee, current_data, is_manual= False):