Browse Source

fix company name when partner.is_company

for/master
Harald Welte 5 years ago
parent
commit
db33beee81
  1. 2
      models/dp_delivery_carrier.py

2
models/dp_delivery_carrier.py

@ -61,7 +61,7 @@ class DPDeliveryCarrier(models.Model):
city = partner.city,
country = country)
if partner.is_company:
return im.build_comp_addr(company = partner.parent_id.name,
return im.build_comp_addr(company = ptartner.name,
address = addr)
else:
if partner.parent_id.name:

Loading…
Cancel
Save