HACK: don't send customs declaration to UPS

this is required due to the invoice_date problem
This commit is contained in:
Harald Welte 2021-02-15 15:18:57 +01:00
parent 34aa1bbd58
commit 1338359e24
1 changed files with 1 additions and 1 deletions

View File

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