localize statename in address-confirm

This commit is contained in:
Richard Schreiber
2025-12-23 09:44:31 +01:00
parent b88e49311a
commit a78b482223
+1 -1
View File
@@ -3480,7 +3480,7 @@ class InvoiceAddress(models.Model):
def state_name(self):
sd = pycountry.subdivisions.get(code='{}-{}'.format(self.country, self.state))
if sd:
return sd.name
return _(sd.name)
return self.state
@property