From c9129b8b00d82a9c193aec388df03be1419050bd Mon Sep 17 00:00:00 2001 From: resteve Date: Thu, 18 Jun 2015 11:52:04 +0200 Subject: [PATCH] Carrier Service from shipment, carrier or default --- shipment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shipment.py b/shipment.py index e423acf..346f28f 100644 --- a/shipment.py +++ b/shipment.py @@ -49,7 +49,7 @@ class ShipmentOut: with Picking(api.username, api.password, api.debug) as picking_api: for shipment in shipments: - service = shipment.carrier_service or default_service + service = shipment.carrier_service or shipment.carrier.service or default_service if not service: message = self.raise_user_error('seurval_add_services', {}, raise_exception=False)