From 6ee7e4cd36bb39452a2e171e821c2f1ba4428451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 9 Feb 2025 19:51:04 +0100 Subject: [PATCH] Do not fail to clean when help selection is None Closes #13862 (grafted from 7459598460593b98dd6a04ecf24551266290e2eb) --HG-- branch : 6.0 --- trytond/trytond/ir/translation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/trytond/trytond/ir/translation.py b/trytond/trytond/ir/translation.py index 3fc2bf79bc..903f6105b1 100644 --- a/trytond/trytond/ir/translation.py +++ b/trytond/trytond/ir/translation.py @@ -1333,7 +1333,11 @@ class TranslationClean(Wizard): if not field: return True help_ = field.help - help_selection = list(getattr(field, 'help_selection', {}).values()) + help_selection = getattr(field, 'help_selection', {}) + if help_selection: + help_selection = list(help_selection.values()) + else: + help_selection = [] if not help_ and not help_selection: return True if translation.src not in list(help_) + help_selection: