添加功能
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user