From 4cbd08353e76cd2fd8f6c7c0ad50db1bab7e0f87 Mon Sep 17 00:00:00 2001 From: Mqdd Date: Thu, 19 Feb 2026 13:24:17 +0700 Subject: fix singleton error cancel SO --- fixco_custom/models/stock_picking.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fixco_custom/models/stock_picking.py b/fixco_custom/models/stock_picking.py index 0cfa065..a91274c 100755 --- a/fixco_custom/models/stock_picking.py +++ b/fixco_custom/models/stock_picking.py @@ -293,12 +293,13 @@ class StockPicking(models.Model): raise UserError( 'Hanya Accounting yang bisa melakukan cancel karena di po nya sudah ada uang muka' ) - res = super(StockPicking, self).action_cancel() - for picking in self: if picking.picking_type_code == 'incoming' and picking.name.startswith('BU/IN'): picking.set_po_bill_status() + + res = super(StockPicking, self).action_cancel() + return res def action_create_invoice_from_mr(self): -- cgit v1.2.3