Compare commits
3 commits
ac00294623
...
12d434d4c7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
12d434d4c7 | ||
|
|
7fc42625a3 | ||
|
|
cd68e8bb5b |
1 changed files with 3 additions and 2 deletions
|
|
@ -667,9 +667,10 @@ 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