oca-ocb-core/odoo-bringout-oca-ocb-base/odoo/_monkeypatches/bs4.py
Ernad Husremovic 991d2234ca 19.0 vanilla
2025-10-03 18:07:25 +02:00

9 lines
334 B
Python

import bs4
import warnings
def patch_module():
if hasattr(bs4, 'XMLParsedAsHTMLWarning'):
# ofxparse use an html parser to parse ofx xml files and triggers a
# warning since bs4 4.11.0 https://github.com/jseutter/ofxparse/issues/170
warnings.filterwarnings('ignore', category=bs4.XMLParsedAsHTMLWarning)