diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-12-31 11:35:14 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-12-31 11:35:14 +0700 |
| commit | 8d5617370ca205bd4159e01d3ca63d1e694d5e04 (patch) | |
| tree | 23d9c088d50faa460127288341a56e98241f4a09 /fixco_custom/models | |
| parent | 1c42785d665f1b4d459e468d9c0428bc6f767954 (diff) | |
push
Diffstat (limited to 'fixco_custom/models')
| -rwxr-xr-x | fixco_custom/models/detail_order.py | 4 | ||||
| -rwxr-xr-x | fixco_custom/models/stock_picking.py | 2 | ||||
| -rwxr-xr-x | fixco_custom/models/webhook_ginee.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/fixco_custom/models/detail_order.py b/fixco_custom/models/detail_order.py index efb63d6..f72e56c 100755 --- a/fixco_custom/models/detail_order.py +++ b/fixco_custom/models/detail_order.py @@ -62,7 +62,7 @@ class DetailOrder(models.Model): def process_queue_item(self, limit=100): now = time.strftime('%Y-%m-%d %H:%M:%S') - if now < '2025-12-31 00:00:00': + if now < '2025-12-31 23:59:59': return domain = [('execute_status', '=', False)] records = self.search(domain, order='create_date asc', limit=limit) @@ -136,7 +136,7 @@ class DetailOrder(models.Model): def process_queue_item_detail(self, limit=100): now = time.strftime('%Y-%m-%d %H:%M:%S') - if now < '2025-12-31 00:00:00': + if now < '2025-12-31 23:59:59': return domain = [ ('execute_status', '=', 'detail_order'), diff --git a/fixco_custom/models/stock_picking.py b/fixco_custom/models/stock_picking.py index 6850b1e..971278b 100755 --- a/fixco_custom/models/stock_picking.py +++ b/fixco_custom/models/stock_picking.py @@ -302,7 +302,7 @@ class StockPicking(models.Model): now = time.strftime('%Y-%m-%d %H:%M:%S') order_id = self.order_reference - if not self.ginee_task_id and now > '2025-12-31 00:00:00': + if not self.ginee_task_id and now > '2025-12-31 23:59:59': raise UserError(_("Klik Ready To Ship terlebih dahulu")) authorization = self.sign_request(0) diff --git a/fixco_custom/models/webhook_ginee.py b/fixco_custom/models/webhook_ginee.py index 65f2238..8bb4973 100755 --- a/fixco_custom/models/webhook_ginee.py +++ b/fixco_custom/models/webhook_ginee.py @@ -32,7 +32,7 @@ class WebhookGinee(models.Model): def process_queue_item(self, limit=100): now = time.strftime('%Y-%m-%d %H:%M:%S') - if now < '2025-12-31 00:00:00': + if now < '2025-12-31 23:59:59': return domain = [('execute_status', '=', False)] records = self.search(domain, order='create_date asc', limit=limit) |
