Compare commits
No commits in common. "12d434d4c70e8a26b9387013c47aa907db412b30" and "ac002946237b7cab82efff657271cd1147b18442" have entirely different histories.
12d434d4c7
...
ac00294623
1 changed files with 2 additions and 3 deletions
|
|
@ -667,10 +667,9 @@ class GroupOrder(models.Model):
|
||||||
"""
|
"""
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
|
|
||||||
|
# Only confirm if cutoff date has reached or passed (>= cutoff day itself)
|
||||||
today = fields.Date.today()
|
today = fields.Date.today()
|
||||||
|
if self.cutoff_date and self.cutoff_date > today:
|
||||||
# Skip if cutoff hasn't passed yet (the cycle is still open for orders)
|
|
||||||
if self.cutoff_date >= today:
|
|
||||||
_logger.info(
|
_logger.info(
|
||||||
"Cron: Skipping group order %s (%s) - cutoff date %s not yet passed",
|
"Cron: Skipping group order %s (%s) - cutoff date %s not yet passed",
|
||||||
self.id,
|
self.id,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue