From bce8bbfb6e3ae55e1d370ee5a5f966f399f44d12 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Wed, 15 Nov 2017 15:18:49 +0100 Subject: [PATCH] Remove encoding declaration from XML view It's no longer supported in lxml: File "/opt/odoo/external-src/server-tools/server_environment/serv_config.py", line 228, in _build_osv cls._arch = etree.fromstring(arch) File "src/lxml/lxml.etree.pyx", line 3213, in lxml.etree.fromstring (src/lxml/lxml.etree.c:82934) File "src/lxml/parser.pxi", line 1814, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:124471) ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. --- server_environment/serv_config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server_environment/serv_config.py b/server_environment/serv_config.py index 3024e4e..72b27c6 100644 --- a/server_environment/serv_config.py +++ b/server_environment/serv_config.py @@ -199,8 +199,7 @@ class ServerConfiguration(models.TransientModel): @classmethod def _build_osv(cls): """Build the view for the current configuration.""" - arch = ('' - '
' + arch = ('' '') # Odoo server configuration