Skip to content

Commit b7c7ec9

Browse files
committed
[FIX]convert_field_to_html: change param of cr.execute()
1 parent 42e0080 commit b7c7ec9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

openupgradelib/openupgrade.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2467,10 +2467,8 @@ def convert_field_to_html(
24672467
):
24682468
"""
24692469
Convert field value to HTML value.
2470-
24712470
.. versionadded:: 7.0
24722471
"""
2473-
24742472
# For translated fields
24752473
if translate:
24762474
if version_info[0] < 16:
@@ -2484,9 +2482,8 @@ def convert_field_to_html(
24842482
if verbose:
24852483
logged_query(cr, query, (json.dumps(translations), record_id))
24862484
else:
2487-
cr.execute(query, translations, record_id)
2485+
cr.execute(query, (json.dumps(translations), record_id))
24882486
return
2489-
24902487
if version_info[0] < 7:
24912488
logger.error(
24922489
"You cannot use this method in an OpenUpgrade version prior to 7.0."

0 commit comments

Comments
 (0)