dp_delivery_carrier: fix various typos in customs error path
This commit is contained in:
parent
879ba64ed7
commit
042e3b73bd
|
@ -147,13 +147,13 @@ class DPDeliveryCarrier(models.Model):
|
||||||
raise Warning('Product Variant %s has no Country of Origin defined' % (product.name))
|
raise Warning('Product Variant %s has no Country of Origin defined' % (product.name))
|
||||||
weight = product.weight
|
weight = product.weight
|
||||||
else:
|
else:
|
||||||
if ptempl.x_country_of_origin:
|
if ptmpl.x_country_of_origin:
|
||||||
orig = ptempl.x_country_of_origin.code
|
orig = ptmpl.x_country_of_origin.code
|
||||||
else:
|
else:
|
||||||
raise Warning('Product %s has no Country of Origin defined' % (ptempl.name))
|
raise Warning('Product %s has no Country of Origin defined' % (ptmpl.name))
|
||||||
weight = ptempl.weight
|
weight = ptmpl.weight
|
||||||
if not ptempl.customs_code:
|
if not ptmpl.customs_code:
|
||||||
raise Warning('Product %s has no Customs Code defined' % (templ.name))
|
raise Warning('Product %s has no Customs Code defined' % (ptmpl.name))
|
||||||
hts = ptmpl.customs_code.replace(' ', '')
|
hts = ptmpl.customs_code.replace(' ', '')
|
||||||
desc = ptmpl.customs_description_en
|
desc = ptmpl.customs_description_en
|
||||||
if line.procurement_id and line.procurement_id.sale_line_id:
|
if line.procurement_id and line.procurement_id.sale_line_id:
|
||||||
|
|
Loading…
Reference in New Issue