[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:
parent
ac00294623
commit
cd68e8bb5b
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue