From 41d735ab4de14494f6cacb2bfbf12cb4995e2a05 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 (grafted from 6e744a5da63179ef8f8d2bc2ed69e6188163d618) --HG-- branch : 6.0 --- 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 e200868268..48f82604c0 100644 --- a/trytond/trytond/model/modelstorage.py +++ b/trytond/trytond/model/modelstorage.py @@ -861,7 +861,7 @@ class ModelStorage(Model): value, '/'.join(field), ftype) 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]: this_field_def = fields_def[field[-1]] field_type = this_field_def['type']