diff options
| author | Xavier Morel <xmo@odoo.com> | 2020-04-01 08:30:29 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2020-04-22 11:31:20 +0000 |
| commit | 9a93d3db11d0cf7e5e10d4d3578aff73d64a4f61 (patch) | |
| tree | 159315f739fc8f225e51409602de41a8a2586cc8 /odoo/osv/expression.py | |
| parent | d9c685a75730a55e184ca32b75d82722d3f9091f (diff) | |
[FIX] *: collection.<ABC> is deprecated
Diffstat (limited to 'odoo/osv/expression.py')
| -rw-r--r-- | odoo/osv/expression.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/odoo/osv/expression.py b/odoo/osv/expression.py index ce1410b9225..12c2f2df5d7 100644 --- a/odoo/osv/expression.py +++ b/odoo/osv/expression.py @@ -113,7 +113,7 @@ Finally, to instruct OpenERP to really use the unaccent function, you have to start the server specifying the ``--unaccent`` flag. """ -import collections +import collections.abc import logging import traceback @@ -958,7 +958,7 @@ class expression(object): op2 = (TERM_OPERATORS_NEGATION[operator] if operator in NEGATIVE_TERM_OPERATORS else operator) ids2 = [x[0] for x in comodel.name_search(right, domain or [], op2, limit=None)] - elif isinstance(right, collections.Iterable): + elif isinstance(right, collections.abc.Iterable): ids2 = right else: ids2 = [right] @@ -1018,7 +1018,7 @@ class expression(object): op2 = (TERM_OPERATORS_NEGATION[operator] if operator in NEGATIVE_TERM_OPERATORS else operator) ids2 = [x[0] for x in comodel.name_search(right, domain or [], op2, limit=None)] - elif isinstance(right, collections.Iterable): + elif isinstance(right, collections.abc.Iterable): ids2 = right else: ids2 = [right] |
