From f12fdcab2a12f878cc40b356f654ca82be95af5f Mon Sep 17 00:00:00 2001 From: Aungkokolin1997 Date: Wed, 9 Oct 2024 10:57:09 +0000 Subject: [PATCH] [FIX] web_widget_open_tab: add missing encoding on etree.tostring 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 fdfab6cd3c65..d85cb57068f7 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