mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-19 19:52:01 +02:00
18.0 vanilla
This commit is contained in:
parent
d72e748793
commit
0a7ae8db93
337 changed files with 399651 additions and 232598 deletions
13
odoo-bringout-oca-ocb-base/odoo/_monkeypatches/lxml.py
Normal file
13
odoo-bringout-oca-ocb-base/odoo/_monkeypatches/lxml.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue