method-search (ODOO028)
Preview (since 0.16.2.2) · Related issues · View source
Derived from the odoo linter.
This rule is unstable and in preview. The --preview flag is required for use.
What it does
Checks that the method name passed to a field's search= argument starts with
_search_.
Why is this bad?
The _search_<field> prefix is the Odoo naming convention for search methods.
Example
Use instead: