Skip to content

Commit

Permalink
[FIX] web_widget_open_tab: add encoding to etree to prevent IO_ENCODE…
Browse files Browse the repository at this point in the history
…R error for certain non-ASCII characters
  • Loading branch information
AungKoKoLin1997 committed Oct 10, 2024
1 parent f221909 commit 2d20a6e
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="unicode")
return res

0 comments on commit 2d20a6e

Please sign in to comment.