From c2f0f9b849da8a84eda367e90e8705e324fab026 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 (grafted from 1b88570858c0188293c5531ce86b1eef96d23086) --HG-- branch : 6.0 --- 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 8eb048fbb9..5d270ca777 100644 --- a/trytond/trytond/model/fields/selection.py +++ b/trytond/trytond/model/fields/selection.py @@ -29,8 +29,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):