summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-08-23 13:28:56 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-08-23 13:28:56 +0700
commitd1e92dcd8ee34d2140edfc2fe440cc53e89eec79 (patch)
tree280cefe62a9cc5e253a052b90e55c8b5970a6610 /indoteknik_custom
parent8d45e6557063f708e824b2700331c67168dde6c9 (diff)
Add stock picking api response
Diffstat (limited to 'indoteknik_custom')
-rw-r--r--indoteknik_custom/models/stock_picking.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index f9b077ba..8d1a85ea 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -407,6 +407,7 @@ class StockPicking(models.Model):
response['delivery_order']['receiver_name'] = self.waybill_id.receiver_name,
response['delivery_order']['receiver_city'] = self.waybill_id.receiver_city,
response['delivery_status'] = self.waybill_id._get_history('delivery_status')
+ response['delivered'] = self.waybill_id.delivered
response['manifests'] = [self.create_manifest_data(x.description, x.datetime) for x in self.waybill_id.manifest_ids]
return response