upgrade-search-count-true (U1711)#

search(..., count=True), removed in Odoo 17.0.

Applies to Odoo 17.0 and later.

What it does#

Reports count= in calls to search and _search.

Why is this bad?#

Odoo 17.0 removed the parameter: the call raises TypeError.

Fix safety#

Safe for search(domain, count=True) with at most a limit besides: it becomes search_count(domain), keeping the limit.