From fb4b1f2cd974b4b0206ab385df2201c36ed5053d Mon Sep 17 00:00:00 2001 From: Thomas Binsfeld Date: Tue, 14 May 2024 17:46:18 +0200 Subject: [PATCH] [REF] Odoo: lxml 5.2 compatibility --- odoo/tools/mail.py | 3 ++- setup.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/odoo/tools/mail.py b/odoo/tools/mail.py index 487a6afdbd4b4..94650479576b0 100644 --- a/odoo/tools/mail.py +++ b/odoo/tools/mail.py @@ -16,7 +16,8 @@ import idna import markupsafe from lxml import etree, html -from lxml.html import clean, defs +from lxml.html import defs +from lxml_html_clean import clean from werkzeug import urls import odoo diff --git a/setup.py b/setup.py index c9abe74cd4ed8..a24a596260515 100644 --- a/setup.py +++ b/setup.py @@ -33,6 +33,7 @@ 'idna', 'Jinja2', 'lxml', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/ + 'lxml_html_clean', 'libsass', 'MarkupSafe', 'num2words',