From e1e251fa8906db9e710614f4ea10337cfac46d90 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 : 7.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 7d0530bc4d..27dbcef4bd 100644 --- a/trytond/trytond/model/modelstorage.py +++ b/trytond/trytond/model/modelstorage.py @@ -1038,7 +1038,7 @@ class ModelStorage(Model): value, ftype, field_name, klass, column) 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]