From 1f3660c422500d06676547e10292536b7a6a5f8b Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Thu, 1 Jan 2026 06:11:03 +0700 Subject: push --- fixco_custom/models/webhook_ginee.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fixco_custom') diff --git a/fixco_custom/models/webhook_ginee.py b/fixco_custom/models/webhook_ginee.py index 86d8b80..606bd21 100755 --- a/fixco_custom/models/webhook_ginee.py +++ b/fixco_custom/models/webhook_ginee.py @@ -31,12 +31,11 @@ class WebhookGinee(models.Model): # rec.execute_queue() def process_queue_item(self, limit=100): - domain = [('create_date', '>', '2025-12-31 23:59:59')] + domain = [('execute_status', '=', False)] 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, -- cgit v1.2.3 From 43a0814b7efa1acaa04abda402bbfc9bddebc5cc Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Thu, 1 Jan 2026 06:28:27 +0700 Subject: comment kode automatic create invoices while validate bu out --- fixco_custom/models/stock_picking.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fixco_custom') diff --git a/fixco_custom/models/stock_picking.py b/fixco_custom/models/stock_picking.py index 971278b..2258bd4 100755 --- a/fixco_custom/models/stock_picking.py +++ b/fixco_custom/models/stock_picking.py @@ -106,8 +106,8 @@ class StockPicking(models.Model): res = super(StockPicking, self).button_validate() - if self.name.startswith('BU/OUT') and self.origin.startswith('SO/'): - self.create_invoices() + # if self.name.startswith('BU/OUT') and self.origin.startswith('SO/'): + # self.create_invoices() return res -- cgit v1.2.3