Browse Source

[FIX] b_shift: Condition to unsubscribe a worker

Quick fix from @tfrancoi.
pull/105/head
Rémy Taymans 5 years ago
committed by Elouan
parent
commit
0f8026125d
  1. 2
      beesdoo_shift/models/cooperative_status.py

2
beesdoo_shift/models/cooperative_status.py

@ -130,7 +130,7 @@ class CooperativeStatus(models.Model):
ok = self.sr >= 0 and self.sc >= 0
grace_delay = grace_delay + self.time_extension
if self.sr < -1 or self.unsubscribed or not self.cooperator_id.subscribed_shift_ids:
if self.sr < -1 or self.unsubscribed:
self.status = 'unsubscribed'
self.can_shop = False
elif self.today >= self.temporary_exempt_start_date and self.today <= self.temporary_exempt_end_date:

Loading…
Cancel
Save