Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/util/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ def _extract_data_as_attachment(cr, model, field, encoded=True, name_field=None,
def convert_field_to_translatable(cr, model, field):
table = table_of_model(cr, model)
ctype = column_type(cr, table, field)
if not ctype or ctype == "json":
if not ctype or ctype == "jsonb":
return
alter_column_type(cr, table, field, "jsonb", "jsonb_build_object('en_US', {0})")

Expand Down