summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/shipment_group.py4
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()