From 87647dfebd07e7e190eb90796ac1f1a78e4ec53a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 23 Apr 2025 18:32:04 +0200 Subject: [PATCH] Do not clear non unique help translation The help translations may be composed of partitioned strings. Closes #13978 (grafted from 0cbf346b9ea5c1c25e3c97482b3d296432e441aa) --HG-- branch : 6.0 --- trytond/trytond/ir/translation.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trytond/trytond/ir/translation.py b/trytond/trytond/ir/translation.py index b787164b9b..a21bd56ccb 100644 --- a/trytond/trytond/ir/translation.py +++ b/trytond/trytond/ir/translation.py @@ -1354,8 +1354,7 @@ class TranslationClean(Wizard): for translation in translations: if getattr(self, '_clean_%s' % translation.type)(translation): to_delete.append(translation.id) - elif translation.type in ('field', 'model', 'wizard_button', - 'help'): + elif translation.type in {'field', 'model', 'wizard_button'}: key = (translation.module, translation.lang, translation.type, translation.name, translation.res_id) if key in keys: