summaryrefslogtreecommitdiff
path: root/indoteknik_api/models
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-11-20 01:27:19 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-11-20 01:27:19 +0000
commit0b18f8b67d8c4d4642d85f372555e638b3afa253 (patch)
tree59d16fed3c8f1b9b3a2b5b5a4c6e87d61749928b /indoteknik_api/models
parentcc3b79a25e277bd360fdcf34eed1f26bdc44204e (diff)
parentd64eccc538c5eb130efddb4d1b6c5bfc441957e8 (diff)
Merged in CR/shipment (pull request #250)
<imam> shipment
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 8e0371a3..54e1fd40 100644
--- a/indoteknik_api/models/sale_order.py
+++ b/indoteknik_api/models/sale_order.py
@@ -33,7 +33,7 @@ class SaleOrder(models.Model):
'id': picking.id,
'name': picking.name,
'tracking_number': picking.delivery_tracking_no or '',
- 'delivered': picking.waybill_id.delivered or picking.driver_arrival_date != False,
+ 'delivered': picking.waybill_id.delivered or picking.driver_arrival_date != False or picking.sj_return_date != False,
})
if sale_order.state == 'cancel':
data['status'] = 'cancel'