summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/shipment_group.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2025-05-28 11:30:46 +0700
committerstephanchrst <stephanchrst@gmail.com>2025-05-28 11:30:46 +0700
commit5acd19789a0319887abe7b53fcbbb0a7ba9f8cf1 (patch)
tree5b00f15f6d80c7be3e78099f834e6909a0a50f08 /indoteknik_custom/models/shipment_group.py
parentc2c8fff66b2aab1fa034fc2b6a12ebb9b4f9fbc6 (diff)
parentae9766498d304a8336737453310e4272929cea73 (diff)
Merge branch 'odoo-backup' of bitbucket.org:altafixco/indoteknik-addons into odoo-backup
# Conflicts: # indoteknik_custom/models/purchase_order.py
Diffstat (limited to 'indoteknik_custom/models/shipment_group.py')
-rw-r--r--indoteknik_custom/models/shipment_group.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/indoteknik_custom/models/shipment_group.py b/indoteknik_custom/models/shipment_group.py
index 2d84d54c..fcde39c9 100644
--- a/indoteknik_custom/models/shipment_group.py
+++ b/indoteknik_custom/models/shipment_group.py
@@ -19,11 +19,13 @@ class ShipmentGroup(models.Model):
def sync_api_shipping(self):
for rec in self.shipment_line:
+ 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()
-
- if rec.shipment_id.carrier_id.id == 151:
- rec.picking_id.track_envio_shipment()
+ rec.picking_id.action_get_kgx_pod(
+ shipment=f"{self.number}, {', '.join(picking_names)}"
+ )
+ elif rec.shipment_id.carrier_id.id == 151:
+ rec.picking_id.track_envio_shipment(shipment=f"{self.number}")
@api.depends('shipment_line.total_colly')
def _compute_total_colly_line(self):