[FIX] website_sale_aplicoop: revert >= to > condition in _confirm_linked_sale_orders

The cutoff day itself is still open for orders; confirmation should only
happen when the cutoff date is strictly in the past (>= today = skip).
The real bug was only the order of operations in _cron_update_dates.
This commit is contained in:
snt 2026-03-30 19:18:41 +02:00
parent ac00294623
commit cd68e8bb5b

View file

@ -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,