From bc84eb20356e65cd8b6fe58e936cc1b90773fb96 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 24 Oct 2017 16:47:14 +0200 Subject: [PATCH] [FIX] l10n_multilang: translate country states name 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 #19481 Closes #20259 --- addons/l10n_multilang/models/account.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/l10n_multilang/models/account.py b/addons/l10n_multilang/models/account.py index 2e5e0ffe973..be7c6b36dab 100644 --- a/addons/l10n_multilang/models/account.py +++ b/addons/l10n_multilang/models/account.py @@ -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)