remove spaces from HTS numbers

for/master
Harald Welte 2 years ago
parent 0abc037100
commit 35b7575e54
  1. 2
      models/shipcloud_delivery_carrier.py

@ -130,6 +130,8 @@ class SCDeliveryCarrier(models.Model):
price_unit = line.procurement_id.sale_line_id.price_unit
else:
raise Warning('Line has no procurement or procurement no sale order line?!?')
# remove any spaces, as DHL is not happy about them
hts = ''.join(c for c in hts if c.isdigit())
res = {
'origin_country': orig,
'description': line.name,

Loading…
Cancel
Save