From 0f8026125ddd5a26541c20dda8cfd91aabdb3600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Taymans?= Date: Thu, 14 Mar 2019 16:58:41 +0100 Subject: [PATCH] [FIX] b_shift: Condition to unsubscribe a worker Quick fix from @tfrancoi. --- beesdoo_shift/models/cooperative_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beesdoo_shift/models/cooperative_status.py b/beesdoo_shift/models/cooperative_status.py index 5e32041..811adee 100644 --- a/beesdoo_shift/models/cooperative_status.py +++ b/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: