attribute-deprecated (W8105)#

A model uses a deprecated class attribute.

What it does#

Reports class attributes of models that the old API used: _columns, _defaults and length.

Why is this bad?#

They are ignored by the current ORM, so the fields or defaults they define silently do not exist.

Configuration#

[tool.odoo-lint.rules.attribute-deprecated]
attributes = ["_columns", "_defaults", "length"]