deprecated-odoo-model-method (W8160)#
A model overrides a method Odoo deprecated.
What it does#
Reports model methods that Odoo deprecated in the target version or earlier.
By default that is fields_view_get, deprecated in 16.0 in favour of
get_views and _get_view.
Why is this bad?#
The deprecated method is no longer called, or will be removed, so the override silently stops working.
Configuration#
[tool.odoo-lint.rules.deprecated-odoo-model-method]
methods = { "16.0" = ["fields_view_get"] }