From 1338359e24f49b956666ab187f27a27d18489067 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 15 Feb 2021 15:18:57 +0100 Subject: [PATCH] HACK: don't send customs declaration to UPS this is required due to the invoice_date problem --- models/shipcloud_delivery_carrier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/shipcloud_delivery_carrier.py b/models/shipcloud_delivery_carrier.py index 8743efe..4f5a83d 100644 --- a/models/shipcloud_delivery_carrier.py +++ b/models/shipcloud_delivery_carrier.py @@ -220,7 +220,7 @@ class SCDeliveryCarrier(models.Model): from_addr = self.build_sc_addr(warehouse) to_addr = self.build_sc_addr(recipient) pkg = self.build_sc_pkg(picking=pickings) - if warehouse.country_id.code != recipient.country_id.code and self._is_outside_eu(recipient.country_id): + if warehouse.country_id.code != recipient.country_id.code and self._is_outside_eu(recipient.country_id) and carrier_service.carrier != 'ups': customs = self.build_sc_customs_decl(pickings, content_desc) else: customs = None