[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) <moc@odoo.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user