From a976b965d830030f6dcd4ff657612948fc2eb8cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 22 May 2024 18:07:32 +0200 Subject: [PATCH] Do not convert to False when importing translated translated which is empty Closes #13276 --- trytond/trytond/model/modelstorage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/trytond/model/modelstorage.py b/trytond/trytond/model/modelstorage.py index f1fef68aaa..a848473cd6 100644 --- a/trytond/trytond/model/modelstorage.py +++ b/trytond/trytond/model/modelstorage.py @@ -1069,7 +1069,7 @@ class ModelStorage(Model): row[field[0][:-3]] = res elif is_prefix_len and ':lang=' in field[-1]: field_name, lang = field[-1].split(':lang=') - translate.setdefault(lang, {})[field_name] = value or False + translate.setdefault(lang, {})[field_name] = value elif is_prefix_len and prefix == field[:-1]: field_name = field[-1] this_field_def = fields_def[field_name]