diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-19 13:23:08 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-19 13:23:08 +0700 |
| commit | 001feff973b4b7f55266ed8d05c1343e5fc6b2fb (patch) | |
| tree | ce3465d2d9ed5d2dcd63c9af0dd914896679e93b /fixco_custom | |
| parent | c9ae57ed037af108542ad8a6cab41f416829435c (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 9d25944..0cfa065 100755 --- a/fixco_custom/models/stock_picking.py +++ b/fixco_custom/models/stock_picking.py @@ -295,8 +295,9 @@ class StockPicking(models.Model): ) res = super(StockPicking, self).action_cancel() - if self.picking_type_code == 'incoming' and self.name.startswith('BU/IN'): - self.set_po_bill_status() + for picking in self: + if picking.picking_type_code == 'incoming' and picking.name.startswith('BU/IN'): + picking.set_po_bill_status() return res |
