summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/shipment_group.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models/shipment_group.py')
-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 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')