Skip to content

Commit

Permalink
[REF] attribute-deprecated: Deprecate length class attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
moylop260 committed Nov 21, 2016
1 parent af40938 commit 04b1494
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pylint_odoo/checkers/no_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion pylint_odoo/test/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions pylint_odoo/test_repo/broken_module/models/broken_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04b1494

Please sign in to comment.