diff --git a/odoo/netsvc.py b/odoo/netsvc.py index 616bad184e950ebc7c793daf02448cb90a7c3473..deea2e288b28fb58ef403e5d080a34c740ac581b 100644 --- a/odoo/netsvc.py +++ b/odoo/netsvc.py @@ -130,6 +130,9 @@ def init_logger(): warnings.filterwarnings('ignore', r'^invalid escape sequence \'?\\.', category=DeprecationWarning) # recordsets are both sequence and set so trigger warning despite no issue warnings.filterwarnings('ignore', r'^Sampling from a set', category=DeprecationWarning, module='odoo') + # (Jammy) distutils, currentThread, isDaemon, setDaemon future removal are properly handled in upper versions + warnings.filterwarnings('ignore', r'^The distutils package is deprecated and slated for removal', category=DeprecationWarning) + warnings.filterwarnings('ignore', r'^(currentThread|isDaemon|setDaemon)\(\) is deprecated', category=DeprecationWarning) # ignore a bunch of warnings we can't really fix ourselves for module in [ 'babel.util', # deprecated parser module, no release yet