diff --git a/pylint_odoo/checkers/no_modules.py b/pylint_odoo/checkers/no_modules.py index 82eed77f..9214a463 100644 --- a/pylint_odoo/checkers/no_modules.py +++ b/pylint_odoo/checkers/no_modules.py @@ -191,7 +191,7 @@ 'Other OSI approved licence', 'Other proprietary', ] DFTL_ATTRIBUTE_DEPRECATED = [ - '_columns', '_defaults', + '_columns', '_defaults', 'length', ] DFTL_METHOD_REQUIRED_SUPER = [ 'create', 'write', 'read', 'unlink', 'copy', diff --git a/pylint_odoo/test/main.py b/pylint_odoo/test/main.py index 275fb4c2..867fdceb 100644 --- a/pylint_odoo/test/main.py +++ b/pylint_odoo/test/main.py @@ -12,7 +12,7 @@ EXPECTED_ERRORS = { 'api-one-deprecated': 4, 'api-one-multi-together': 2, - 'attribute-deprecated': 2, + 'attribute-deprecated': 3, 'class-camelcase': 1, 'consider-merging-classes-inherited': 2, 'copy-wo-api-one': 2,