Skip to content

Commit

Permalink
[FIX] web_widget_open_tab: add missing encoding on etree.tostring
Browse files Browse the repository at this point in the history
Reference: odoo/odoo#66866
  • Loading branch information
AungKoKoLin1997 committed Oct 15, 2024
1 parent f221909 commit f12fdca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_widget_open_tab/models/ir_ui_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ def fields_view_get(
tree.insert(name_field[0].getparent().index(name_field[0]) + 1, id_elem)
else:
tree.insert(0, id_elem)
res["arch"] = etree.tostring(arch)
res["arch"] = etree.tostring(arch, encoding="utf-8")
return res

0 comments on commit f12fdca

Please sign in to comment.