From e57804207b5238d9fbe47eee264d6c1f8d734854 Mon Sep 17 00:00:00 2001 From: Stanislas Sobieski Date: Wed, 28 Sep 2022 13:52:18 +0000 Subject: [PATCH] [FIX] core: avoir firebase_admin DeprecationWarning With version of urllib3 in ubuntu 22.04 (1.26.5) and with version of firebase_admin between 2.17.0 and 4.5.2 a gives the following warning: In firebase_admin/_http_client.py:30: DeprecationWarning: Using 'method_whitelist' with Retry is deprecated and will be removed in v2.0. Use 'allowed_methods' instead It has been fixed in later version https://github.com/firebase/firebase-admin-python/pull/532 since v4.5.2 closes odoo/odoo#101731 X-original-commit: 66934cde91843a90b99ec02557b41cb68c281119 Signed-off-by: Christophe Monniez (moc) --- odoo/netsvc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/odoo/netsvc.py b/odoo/netsvc.py index 2cce723e281..5e6cbfc7e7a 100644 --- a/odoo/netsvc.py +++ b/odoo/netsvc.py @@ -139,6 +139,7 @@ def init_logger(): 'ofxparse',# ofxparse importing ABC from collections 'astroid', # deprecated imp module (fixed in 2.5.1) 'requests_toolbelt', # importing ABC from collections (fixed in 0.9) + 'firebase_admin', # deprecated method_whitelist ]: warnings.filterwarnings('ignore', category=DeprecationWarning, module=module)