diff --git a/odoo/netsvc.py b/odoo/netsvc.py index 9a4db8f6bf2..776a6f49b6c 100644 --- a/odoo/netsvc.py +++ b/odoo/netsvc.py @@ -148,6 +148,13 @@ def init_logger(): warnings.filterwarnings('ignore', r'^Sampling from a set', category=DeprecationWarning, module='odoo') # https://github.com/urllib3/urllib3/issues/2680 warnings.filterwarnings('ignore', r'^\'urllib3.contrib.pyopenssl\' module is deprecated.+', category=DeprecationWarning) + # 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 + try: + from bs4 import XMLParsedAsHTMLWarning + warnings.filterwarnings('ignore', category=XMLParsedAsHTMLWarning) + except ImportError: + pass # ignore a bunch of warnings we can't really fix ourselves for module in [ 'babel.util', # deprecated parser module, no release yet