From a77dee7b98674dff4277f2274f5869b0eeaa0824 Mon Sep 17 00:00:00 2001 From: wan Date: Thu, 25 Nov 2021 10:49:28 +0000 Subject: [PATCH] [FIX] core: typo in field type check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes odoo/odoo#82238 X-original-commit: 5164739b835445fa11b2efc53e2ff839a4bad10a Signed-off-by: Martin Trigaux (mat) Signed-off-by: William André (wan) --- odoo/tools/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/tools/convert.py b/odoo/tools/convert.py index 8ccbf4de696..0aed142530e 100644 --- a/odoo/tools/convert.py +++ b/odoo/tools/convert.py @@ -578,7 +578,7 @@ form: module.record_id""" % (xml_id,) f_val = float(f_val) elif field_type == 'boolean' and isinstance(f_val, str): f_val = str2bool(f_val) - elif field_type in 'one2many': + elif field_type == 'one2many': if isinstance(f_val, str): f_val = None for child in field.findall('./record'):