From 986ced496a33ac7c1dd84fb3eb9bcbc4ab0f51b5 Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Tue, 10 Dec 2019 16:02:17 +0100 Subject: [PATCH] [REM] b_shift : attendance sheet shift 'cancelled' status --- beesdoo_shift/models/attendance_sheet.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/beesdoo_shift/models/attendance_sheet.py b/beesdoo_shift/models/attendance_sheet.py index e527940..48522be 100644 --- a/beesdoo_shift/models/attendance_sheet.py +++ b/beesdoo_shift/models/attendance_sheet.py @@ -36,7 +36,6 @@ class AttendanceSheetShift(models.AbstractModel): ("absent_0", "Absent / 0 Compensation"), ("absent_1", "Absent / 1 Compensation"), ("absent_2", "Absent / 2 Compensations"), - ("cancelled", "Cancelled"), ], string="Shift Stage", ) @@ -81,13 +80,9 @@ class AttendanceSheetShift(models.AbstractModel): return "excused" if self.stage == "absent_2": return "absent" - if self.stage == "cancelled": - return "cancel" if self.working_mode == "irregular": if self.stage == "present": return "done" - if self.stage == "cancelled": - return "cancel" return "absent"