@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user