From 76df986fd3d9dce17f729bfb5f0efc0954058abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agathe=20Moll=C3=A9?= Date: Thu, 21 Jun 2018 03:56:18 -0400 Subject: [PATCH] [FIX] l10n_multilang: translate country states name Backport of bc84eb20356e 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 --- 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)