Browse Source

[REM] b_shift : attendance sheet shift 'cancelled' status

pull/143/head
Elouan Le Bars 4 years ago
parent
commit
61fddb6705
  1. 5
      beesdoo_shift/models/attendance_sheet.py

5
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"

Loading…
Cancel
Save