HACK: don't send customs declaration to UPS
this is required due to the invoice_date problem
This commit is contained in:
parent
34aa1bbd58
commit
1338359e24
|
@ -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…
Reference in New Issue