summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-05-27 10:35:08 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-05-27 10:35:08 +0700
commita01f05f50dd852e76b44709259e8baaf33e4b462 (patch)
tree5b996b7e5c3b9d231259cbf47edf2a52c83ca5a0
parentb5bc5c5bc63ecbfa7efe9ff06a373bbedfcf7d42 (diff)
push
-rw-r--r--indoteknik_custom/models/shipment_group.py4
-rw-r--r--indoteknik_custom/models/stock_picking.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/shipment_group.py b/indoteknik_custom/models/shipment_group.py
index 87d222a6..2d84d54c 100644
--- a/indoteknik_custom/models/shipment_group.py
+++ b/indoteknik_custom/models/shipment_group.py
@@ -19,10 +19,10 @@ class ShipmentGroup(models.Model):
def sync_api_shipping(self):
for rec in self.shipment_line:
- if rec.shipment_id.carrier_id == 173:
+ if rec.shipment_id.carrier_id.id == 173:
rec.picking_id.action_get_kgx_pod()
- if rec.shipment_id.carrier_id == 151:
+ if rec.shipment_id.carrier_id.id == 151:
rec.picking_id.track_envio_shipment()
@api.depends('shipment_line.total_colly')
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 0fcb7ca1..05f946fd 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -288,7 +288,7 @@ class StockPicking(models.Model):
self.ensure_one()
if not self.name or not self.origin:
return False
- return f"{self.name} {self.origin}"
+ return f"{self.name}, {self.origin}"
def _download_pod_photo(self, url):
"""Mengunduh foto POD dari URL"""