[MIG] delivery_fedex_hibou: to 15.0 + per-package insurance

This commit is contained in:
Jared Kipe
2022-02-10 13:26:33 -08:00
committed by Leo Pinedo
parent 7c6f9a3b4b
commit 2a7724efe4

View File

@@ -229,7 +229,7 @@ class DeliveryCarrier(models.Model):
for carrier in self: for carrier in self:
carrier_packages = packages and packages.filtered(lambda p: not p.carrier_tracking_ref and carrier_packages = packages and packages.filtered(lambda p: not p.carrier_tracking_ref and
(not p.carrier_id or p.carrier_id == carrier) and (not p.carrier_id or p.carrier_id == carrier) and
p.packaging_type_id.package_carrier_type in (False, '', 'none', carrier.delivery_type)) p.package_type_id.package_carrier_type in (False, '', 'none', carrier.delivery_type))
if packages and not carrier_packages: if packages and not carrier_packages:
continue continue
if hasattr(carrier, '%s_rate_shipment_multi' % self.delivery_type): if hasattr(carrier, '%s_rate_shipment_multi' % self.delivery_type):