Merge pull request !11559 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2026-05-18 08:01:55 +00:00
committed by Gitee
@@ -1304,6 +1304,17 @@ class HrAttendance(models.Model):
pass #todo 待过
def update_attendance(self, employee, current_date):
# 判断当天入职:
if current_date <= employee.entry_date:
self.write({
'is_no_card': False,
'is_early_card': False,
'is_late_card': False,
'is_abnormal': False,
'absenteeism_card': False
})
return
if self.workflow_id:
if self.workflow_id.res_model == 'card.approval':
self.write({