diff --git a/website_sale_aplicoop/models/group_order.py b/website_sale_aplicoop/models/group_order.py index bb9b02a..8bfe7dd 100644 --- a/website_sale_aplicoop/models/group_order.py +++ b/website_sale_aplicoop/models/group_order.py @@ -667,9 +667,9 @@ class GroupOrder(models.Model): """ self.ensure_one() - # Only confirm if cutoff date has reached or passed (>= cutoff day itself) + # Only confirm if cutoff date has strictly passed (cutoff day itself is still open) today = fields.Date.today() - if self.cutoff_date and self.cutoff_date > today: + if self.cutoff_date and self.cutoff_date >= today: _logger.info( "Cron: Skipping group order %s (%s) - cutoff date %s not yet passed", self.id,