Skip to content

Commit

Permalink
[FIX]convert_field_to_html: change param of cr.execute()
Browse files Browse the repository at this point in the history
  • Loading branch information
clementthomas committed Oct 3, 2024
1 parent 42e0080 commit b7c7ec9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions openupgradelib/openupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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."
Expand Down

0 comments on commit b7c7ec9

Please sign in to comment.