diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-09-16 09:27:19 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-09-16 09:27:19 +0700 |
| commit | abb95335ee639c1d5b6d3eb0e7f65f452c77706c (patch) | |
| tree | 0ed3114bc7601b71d57eb9f5c4e1f40718b9eee0 /indoteknik_api/models | |
| parent | 4c305c1ac192d5610dedbc90723281dd09bc0a97 (diff) | |
<hafid> fix status website
Diffstat (limited to 'indoteknik_api/models')
| -rw-r--r-- | indoteknik_api/models/sale_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/models/sale_order.py b/indoteknik_api/models/sale_order.py index c59dead9..23be358a 100644 --- a/indoteknik_api/models/sale_order.py +++ b/indoteknik_api/models/sale_order.py @@ -75,7 +75,7 @@ class SaleOrder(models.Model): if sale_order.state == 'sale': bu_pickings = [ p for p in sale_order.picking_ids - if p.picking_type_id and p.picking_type_id.id == 29 + if p.picking_type_id and p.picking_type_id.id == 29 and p.state != 'cancel' ] # Hitung status masing-masing picking |
