diff options
| -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): |
