[FIX] l10n_multilang: translate country states name

Backport of bc84eb2035 to 10.0

Countries with several official languages often have multiple names for their
states. Allow to translate the state name for such countries.

Some monolingual countries but, yet, with a need of translation of the addresses
such as China or Germany can add the same flag in their respective l10n_* module

Closes #25340
This commit is contained in:
Agathe Mollé
2018-06-21 09:56:18 +02:00
committed by Martin Trigaux
parent 081259ef25
commit 76df986fd3
+6
View File
@@ -69,3 +69,9 @@ class AccountAnalyticAccount(models.Model):
_inherit = 'account.analytic.account'
name = fields.Char(translate=True)
class ResCountryState(models.Model):
_inherit = 'res.country.state'
name = fields.Char(translate=True)