mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] delivery_fedex_hibou: to 15.0 + per-package insurance
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user