Merge pull request !1206 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-01-08 10:43:04 +00:00
committed by Gitee
@@ -46,6 +46,11 @@ class CardApprovals(models.Model):
rep.replacement_time = 'work'
if rep.attendance_id.is_no_card and not rep.attendance_id.check_in and not rep.attendance_id.check_out:
rep.replacement_time = 'all'
if rep.attendance_id.is_no_card and not rep.attendance_id.check_out and rep.attendance_id.is_early_card:
rep.replacement_time = 'all'
if rep.attendance_id.is_no_card and not rep.attendance_id.check_in and rep.attendance_id.is_late_card:
rep.replacement_time = 'all'
@api.depends('users_id', 'attendance_id')
def _compute_name(self):