summaryrefslogtreecommitdiff
path: root/fixco_custom/models/webhook_ginee.py
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/models/webhook_ginee.py')
-rwxr-xr-xfixco_custom/models/webhook_ginee.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/fixco_custom/models/webhook_ginee.py b/fixco_custom/models/webhook_ginee.py
index 8bb4973..86d8b80 100755
--- a/fixco_custom/models/webhook_ginee.py
+++ b/fixco_custom/models/webhook_ginee.py
@@ -31,14 +31,12 @@ class WebhookGinee(models.Model):
# rec.execute_queue()
def process_queue_item(self, limit=100):
- now = time.strftime('%Y-%m-%d %H:%M:%S')
- if now < '2025-12-31 23:59:59':
- return
- domain = [('execute_status', '=', False)]
+ domain = [('create_date', '>', '2025-12-31 23:59:59')]
records = self.search(domain, order='create_date asc', limit=limit)
for rec in records:
rec.execute_queue()
+
def execute_queue(self):
detail_order = self.env['detail.order'].create({
'json_ginee': self.json_ginee,