diff --git a/.travis.yml b/.travis.yml index 1967f507..1501bf7e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,7 +40,7 @@ install: - pip install tox script: - - flake8 --exclude=__init__.py . + - flake8 --ignore=F999 --exclude=__init__.py . - tox -e $TOXENV,profile-stats after_success: 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, diff --git a/pylint_odoo/test_repo/broken_module/models/broken_model.py b/pylint_odoo/test_repo/broken_module/models/broken_model.py index 9760ca48..bf2c10ae 100644 --- a/pylint_odoo/test_repo/broken_module/models/broken_model.py +++ b/pylint_odoo/test_repo/broken_module/models/broken_model.py @@ -20,6 +20,7 @@ class TestModel(models.Model): _columns = {} # deprecated columns _defaults = {} # deprecated defaults + length = fields.Integer() # Deprecated length by js errors name = fields.Char( _(u"Näme"), # Don't need translate