upgrade-rec-names-search-tuple (U2035)#

_rec_names_search is a list; Odoo 20.0 declares it a tuple.

Applies to Odoo 20.0 and later.

What it does#

Reports _rec_names_search = [...] in a model class.

Why is this bad?#

Odoo 20.0 types the attribute as a collection with () as default, and its own upgrade script (19.5-00-tuple-rec_names_search) turns the lists into tuples. A list still works; this keeps a module in step with Odoo’s code.

Opt-in: select it (select = ["ALL", "U2035"]).

Fix safety#

Safe: the list becomes a tuple.