18.0 vanilla

This commit is contained in:
Ernad Husremovic 2025-10-03 18:06:50 +02:00
parent d72e748793
commit 0a7ae8db93
337 changed files with 399651 additions and 232598 deletions

View file

@ -0,0 +1,13 @@
import lxml.html.clean
import re
from importlib.metadata import version
from odoo.tools import parse_version
def patch_lxml():
# between these versions having a couple data urls in a style attribute
# or style node removes the attribute or node erroneously
if parse_version("4.6.0") <= parse_version(version('lxml')) < parse_version("5.2.0"):
lxml.html.clean._find_image_dataurls = re.compile(r'data:image/(.+?);base64,').findall