From 9a93d3db11d0cf7e5e10d4d3578aff73d64a4f61 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 1 Apr 2020 08:30:29 +0000 Subject: [FIX] *: collection. is deprecated --- odoo/modules/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odoo/modules/module.py') diff --git a/odoo/modules/module.py b/odoo/modules/module.py index 88d96949b74..959019d56e8 100644 --- a/odoo/modules/module.py +++ b/odoo/modules/module.py @@ -2,7 +2,7 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. import ast -import collections +import collections.abc import importlib import inspect import itertools @@ -260,7 +260,7 @@ def load_information_from_description_file(module, mod_path=None): # auto_install: [] to always auto_install a module regardless of its # dependencies auto_install = info.get('auto_install', info.get('active', False)) - if isinstance(auto_install, collections.Iterable): + if isinstance(auto_install, collections.abc.Iterable): info['auto_install'] = set(auto_install) non_dependencies = info['auto_install'].difference(info['depends']) assert not non_dependencies,\ -- cgit v1.2.3