From 5a178a685fa93a9c0a24d131e7d76623d5c2ff18 Mon Sep 17 00:00:00 2001 From: Thibault Francois Date: Fri, 25 May 2018 23:53:32 +0200 Subject: [PATCH] [FIX] Irregular worker in holiday cannot shop --- 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 c92522b..9e6af93 100644 --- a/beesdoo_shift/models/cooperative_status.py +++ b/beesdoo_shift/models/cooperative_status.py @@ -186,7 +186,7 @@ class CooperativeStatus(models.Model): #Check for holidays; Can be in holidays even in alert or other mode ? elif self.today >= self.holiday_start_time and self.today <= self.holiday_end_time: self.status = 'holiday' - self.can_shop = True + self.can_shop = False elif ok or (not self.alert_start_time and self.sr >= 0): self.status = 'ok' self.can_shop = True