From 4713207f14c156b64bda137bfbc5b97ab44a8e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 26 Jan 2025 17:01:20 +0100 Subject: [PATCH] Always define translation source name The source name may be used to translate the help selection. Closes #13839 --- trytond/trytond/model/fields/selection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/trytond/model/fields/selection.py b/trytond/trytond/model/fields/selection.py index fd9f983dc2..a4b42786e9 100644 --- a/trytond/trytond/model/fields/selection.py +++ b/trytond/trytond/model/fields/selection.py @@ -30,8 +30,8 @@ class SelectionMixin(Field): pool = Pool() Translation = pool.get('ir.translation') definition = super().definition(model, language) + name = '%s,%s' % (model.__name__, self.name) if not isinstance(self.selection, str) and self.translate_selection: - name = '%s,%s' % (model.__name__, self.name) selection = [] for key, source in self.selection: if not isinstance(source, LazyString):