From 88f47804abc67339519d7a7f2dd3764da7121458 Mon Sep 17 00:00:00 2001 From: "Chong Wang (cwg)" Date: Fri, 9 Sep 2022 08:50:47 +0200 Subject: [PATCH] [IMP] account: remove translate=True from res.country.state.name People asked to translate the States, because they had a use case, but it's a minority. But other people also had issues on addresses because states were translated. Translated fields can introduce mistakes. Example: if I send a letter to: "Virginie-Occidentale", will United States postal services understand that they actually have to send to "West-Virginia"? That's an easy one, but there are more tricky ones. Translations induce a lot of mismatch when people duplicate or edit. Suppose a user edit "New-York" state and rename into "Californie" because they do a mistake while changing the address of a partner the same customer might receive it's letter in New-York or California, depending on the language. Having states being translated might lead to more issues, than not translated. --- addons/l10n_multilang/models/account.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/addons/l10n_multilang/models/account.py b/addons/l10n_multilang/models/account.py index ef2027cffa6..c538986edff 100644 --- a/addons/l10n_multilang/models/account.py +++ b/addons/l10n_multilang/models/account.py @@ -82,9 +82,3 @@ 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)