From b7c7ec97ca1b24201378c8f2d1c9b9ab8064b513 Mon Sep 17 00:00:00 2001 From: clementthomas Date: Tue, 1 Oct 2024 13:17:04 +0200 Subject: [PATCH] [FIX]convert_field_to_html: change param of cr.execute() --- openupgradelib/openupgrade.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/openupgradelib/openupgrade.py b/openupgradelib/openupgrade.py index e29bc066..26dc1ff8 100644 --- a/openupgradelib/openupgrade.py +++ b/openupgradelib/openupgrade.py @@ -2467,10 +2467,8 @@ def convert_field_to_html( ): """ Convert field value to HTML value. - .. versionadded:: 7.0 """ - # For translated fields if translate: if version_info[0] < 16: @@ -2484,9 +2482,8 @@ def convert_field_to_html( if verbose: logged_query(cr, query, (json.dumps(translations), record_id)) else: - cr.execute(query, translations, record_id) + cr.execute(query, (json.dumps(translations), record_id)) return - if version_info[0] < 7: logger.error( "You cannot use this method in an OpenUpgrade version prior to 7.0."