Carrier Service from shipment, carrier or default

This commit is contained in:
resteve 2015-06-18 11:52:04 +02:00
parent 00bf41ffa2
commit c9129b8b00
1 changed files with 1 additions and 1 deletions

View File

@ -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)