summaryrefslogtreecommitdiff
path: root/fixco_custom/models/webhook_ginee.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2026-01-01 00:50:26 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2026-01-01 00:50:26 +0700
commit7f75982f2db861e381d418e3dd4311b503a34070 (patch)
treeadd96cb994366737ababc94d29fee10eed53622f /fixco_custom/models/webhook_ginee.py
parentaaaf75e4f4c62b7481c354456909e958d1631379 (diff)
push fix webhook ginee to detail order
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,