Browse Source

HACK: don't send customs declaration to UPS

this is required due to the invoice_date problem
master
Harald Welte 8 months ago
parent
commit
1338359e24
  1. 2
      models/shipcloud_delivery_carrier.py

2
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

Loading…
Cancel
Save