upgrade-tree-reference (U1803)#

An xpath, mode or tree_view_ref refers to tree, renamed list in Odoo 18.0.

Applies to Odoo 18.0 and later.

What it does#

Reports references to the old list view name: tree as an element in <xpath expr>, mode="tree" on x2many fields, and tree_view_ref in contexts.

Why is this bad?#

Since Odoo 18.0 an xpath to //tree finds nothing and the view fails to install, and tree_view_ref is silently ignored: the default list view is used instead of the one you named.

Fix safety#

Safe: tree becomes list and tree_view_ref becomes list_view_ref.