Skip to content
Snippets Groups Projects
Commit 52e2971b authored by Thomas Dieuzeide's avatar Thomas Dieuzeide
Browse files

[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: default avatarXavier Morel (xmo) <xmo@odoo.com>
Signed-off-by: default avatarThomas Dieuzeide <tdi-odoo@users.noreply.github.com>
parent 29a2b863
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment