diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-27 11:10:09 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-27 11:10:09 +0700 |
| commit | dad6bca8abdda9e5987a0adb8cae75540b6176eb (patch) | |
| tree | c5a35ba03f307295af47a813cf387f41a140e585 | |
| parent | 4ba7242388db36fa641ea2008af08319a3dc014c (diff) | |
push
| -rw-r--r-- | indoteknik_custom/models/shipment_group.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/shipment_group.py b/indoteknik_custom/models/shipment_group.py index 09a4fba9..9ebf36c0 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: - picking_names = [picking.picking_id.name for picking in rec] + picking_names = [lines.picking_id.name for lines in self.shipment_line] if rec.shipment_id.carrier_id.id == 173: rec.picking_id.action_get_kgx_pod( - shipment=f"{self.number},{','.join(picking_names)}" + shipment=f"{self.number}, {', '.join(picking_names)}" ) elif rec.shipment_id.carrier_id.id == 151: rec.picking_id.track_envio_shipment() |
