添加功能

This commit is contained in:
李鹏宇
2026-05-08 19:08:58 +08:00
parent 0b9d1d3af9
commit ef2010fdaf
@@ -1315,6 +1315,8 @@ class HrAttendance(models.Model):
'absenteeism_card': False
})
return
if self.workflow_id.res_model == 'overtime.approval':
return
current_date_start = datetime.combine(current_date, datetime.min.time()) # 当天 00:00:00 datetime类型
current_date_end = datetime.combine(current_date, datetime.max.time()) # 当天 23:59:59 datetime类型