summaryrefslogtreecommitdiff
path: root/indoteknik_api/models
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-09-16 09:09:39 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-09-16 09:09:39 +0000
commit07a46fdbd16d72e60895d38047b6bb2e344dc18f (patch)
treee9e34e7564d0257ccc781085959f7140b849335d /indoteknik_api/models
parent19a286c49f2ae626d9d6c12829d7bc094ba563b2 (diff)
parent41b9e8084b388dca0b5b18daf0dfe9537db1ed1c (diff)
Merged in refund_system (pull request #417)
Refund system
Diffstat (limited to 'indoteknik_api/models')
-rw-r--r--indoteknik_api/models/sale_order.py2
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