Fix a type error PRETIXEU-1BF

This commit is contained in:
Raphael Michel
2019-08-17 12:39:38 +02:00
parent bcf8e9cd04
commit 9a826b694f

View File

@@ -152,7 +152,7 @@ class Invoice(models.Model):
if COUNTRIES_WITH_STATE_IN_ADDRESS[str(self.invoice_to_country)][1] == 'long':
state_name = pycountry.subdivisions.get(
code='{}-{}'.format(self.invoice_to_country, self.invoice_to_state)
)
).name
parts = [
self.invoice_to_company,