mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] delivery_ups_hibou: fix rate multi
This commit is contained in:
committed by
Jared Kipe
parent
a5fbd418f0
commit
fb9f7f6df6
@@ -128,10 +128,10 @@ def patched_get_shipping_price(self, shipment_info, packages, shipper, ship_from
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Hibou Delivery
|
# Hibou Delivery
|
||||||
if hasattr(response.RatedShipment[0], 'GuaranteedDelivery') and hasattr(
|
if hasattr(rate, 'GuaranteedDelivery') and hasattr(rate.GuaranteedDelivery, 'BusinessDaysInTransit'):
|
||||||
response.RatedShipment[0].GuaranteedDelivery, 'BusinessDaysInTransit'):
|
rated_shipment['transit_days'] = int(rate.GuaranteedDelivery.BusinessDaysInTransit)
|
||||||
rated_shipment['transit_days'] = int(response.RatedShipment[0].GuaranteedDelivery.BusinessDaysInTransit)
|
|
||||||
# End
|
# End
|
||||||
|
rated_shipment['service_code'] = rate.Service.Code
|
||||||
result.append(rated_shipment)
|
result.append(rated_shipment)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user