From db6df75d1bc89154b715dcad40cbe545270b0022 Mon Sep 17 00:00:00 2001 From: "Aung Ko Ko Lin (Quartile)" <45355704+AungKoKoLin1997@users.noreply.github.com> Date: Wed, 16 Oct 2024 09:19:23 +0700 Subject: [PATCH] [4867][FIX] web_widget_open_tab: add missing encoding to etree.tostring #46 [4867][FIX] web_widget_open_tab: add missing encoding to etree.tostring #46 Reference: https://github.com/odoo/odoo/pull/66866 --- web_widget_open_tab/models/ir_ui_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_widget_open_tab/models/ir_ui_view.py b/web_widget_open_tab/models/ir_ui_view.py index fdfab6c..d85cb57 100644 --- a/web_widget_open_tab/models/ir_ui_view.py +++ b/web_widget_open_tab/models/ir_ui_view.py @@ -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