diff options
| author | Thomas Dieuzeide <tdi@odoo.com> | 2020-10-23 09:43:39 +0000 |
|---|---|---|
| committer | Thomas Dieuzeide <tdi@odoo.com> | 2020-10-26 10:54:42 +0000 |
| commit | 52e2971b8042d3d519fc934e299ec9a87fd19ebe (patch) | |
| tree | ad9f45dea3a444f61e378b5c8758a0c860f7f11c | |
| parent | 29a2b863b7abe3639fc569d643005db171c2ca5b (diff) | |
[FIX] base: avoid deprecation warning
Using or importing the ABCs from 'collections' instead of from 'collections.abc'
is deprecated since Python 3.3, and in 3.9 it will stop working.
closes odoo/odoo#60722
X-original-commit: b6907f8fad3b27400a4c2e4a046ed0f02869f863
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Signed-off-by: Thomas Dieuzeide <tdi-odoo@users.noreply.github.com>
| -rw-r--r-- | odoo/addons/base/models/res_bank.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/addons/base/models/res_bank.py b/odoo/addons/base/models/res_bank.py index b4c8c46a8e0..0f08c06b21b 100644 --- a/odoo/addons/base/models/res_bank.py +++ b/odoo/addons/base/models/res_bank.py @@ -2,7 +2,7 @@ import re -import collections +from collections.abc import Iterable from odoo import api, fields, models, _ from odoo.osv import expression @@ -116,7 +116,7 @@ class ResPartnerBank(models.Model): if args[pos][0] == 'acc_number': op = args[pos][1] value = args[pos][2] - if not isinstance(value, str) and isinstance(value, collections.Iterable): + if not isinstance(value, str) and isinstance(value, Iterable): value = [sanitize_account_number(i) for i in value] else: value = sanitize_account_number(value) |
