diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-19 13:24:17 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-19 13:24:17 +0700 |
| commit | 4cbd08353e76cd2fd8f6c7c0ad50db1bab7e0f87 (patch) | |
| tree | 31596063a0d476fad6451c2360dbf5eb971826d7 /fixco_custom | |
| parent | 001feff973b4b7f55266ed8d05c1343e5fc6b2fb (diff) | |
<Miqdad> fix singleton error cancel SO
Diffstat (limited to 'fixco_custom')
| -rwxr-xr-x | fixco_custom/models/stock_picking.py | 5 |
1 files 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): |
