Skip to content

Commit c8fbf2c

Browse files
authored
Merge pull request #406 from Tecnativa/fix-convert_field_to_html
[FIX] convert_field_to_html: don't consider NULL values
2 parents 73f7b8f + ad0c68a commit c8fbf2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openupgradelib/openupgrade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2498,7 +2498,7 @@ def convert_field_to_html(
24982498
if version_info[0] < 16:
24992499
do_raise("Translatable fields are only managed in version 16.0 or higher")
25002500
cr.execute( # pylint: disable=E8103
2501-
"SELECT id, {field_name} FROM {table};".format(
2501+
"SELECT id, {field_name} FROM {table} WHERE {field_name} IS NOT NULL".format(
25022502
field_name=field_name, table=table
25032503
)
25042504
)

0 commit comments

Comments
 (0)