summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_picking.py
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-05-28 09:00:30 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-05-28 09:00:30 +0700
commit4ed94e9e1de027aba326ff3dce954b765f752009 (patch)
treedadad3fa60640737fe0128019e7fdbc67f236553 /indoteknik_custom/models/stock_picking.py
parent85f9481cce4fbec278d2cde48f009d480b8a35ed (diff)
(andri) penambahan log note ketika biteship berhasil & penyesuaian field required pada SO
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
-rw-r--r--indoteknik_custom/models/stock_picking.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 5548db75..4522dac0 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -617,6 +617,14 @@ class StockPicking(models.Model):
waybill_id = data.get("courier", {}).get("waybill_id", "")
+ self.message_post(
+ body=f"📦 Biteship berhasil dilakukan.<br/>"
+ f"Kurir: {self.carrier_id.name}<br/>"
+ f"Tracking ID: {self.biteship_tracking_id or '-'}<br/>"
+ f"Resi: {waybill_id or '-'}",
+ message_type="comment"
+ )
+
message = f"✅ Berhasil Order ke Biteship! Resi: {waybill_id}" if waybill_id else "⚠️ Order berhasil, tetapi tidak ada nomor resi."
return {