Compare commits

..

No commits in common. "12d434d4c70e8a26b9387013c47aa907db412b30" and "ac002946237b7cab82efff657271cd1147b18442" have entirely different histories.

View file

@ -667,10 +667,9 @@ class GroupOrder(models.Model):
"""
self.ensure_one()
# Only confirm if cutoff date has reached or passed (>= cutoff day itself)
today = fields.Date.today()
# Skip if cutoff hasn't passed yet (the cycle is still open for orders)
if 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,