Always define translation source name

The source name may be used to translate the help selection.

Closes #13839
(grafted from 1b88570858c0188293c5531ce86b1eef96d23086)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier committed 2025-01-26 17:01:20 +01:00
1 parent 9742f926c7
commit 8f5dfc5b18
1 file changed
+1 -1
+1 -1
View File
@@ -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):