diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-01 00:50:26 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-01 00:50:26 +0700 |
| commit | 7f75982f2db861e381d418e3dd4311b503a34070 (patch) | |
| tree | add96cb994366737ababc94d29fee10eed53622f /fixco_custom/models/detail_order.py | |
| parent | aaaf75e4f4c62b7481c354456909e958d1631379 (diff) | |
push fix webhook ginee to detail order
Diffstat (limited to 'fixco_custom/models/detail_order.py')
| -rwxr-xr-x | fixco_custom/models/detail_order.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fixco_custom/models/detail_order.py b/fixco_custom/models/detail_order.py index f72e56c..3e2a6d8 100755 --- a/fixco_custom/models/detail_order.py +++ b/fixco_custom/models/detail_order.py @@ -61,14 +61,12 @@ class DetailOrder(models.Model): raise UserError(_("Error extracting order ID: %s") % str(e)) 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): try: order_id = self.get_order_id() @@ -135,9 +133,6 @@ class DetailOrder(models.Model): raise UserError(_("Error extracting order ID: %s") % str(e)) def process_queue_item_detail(self, limit=100): - now = time.strftime('%Y-%m-%d %H:%M:%S') - if now < '2025-12-31 23:59:59': - return domain = [ ('execute_status', '=', 'detail_order'), '!', |
