Always define translation source name

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

Closes #13839
This commit is contained in:
Cédric Krier
2025-01-26 17:01:20 +01:00
parent 8763c2fb69
commit 4713207f14
+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):