upgrade-tree-view (U1801)#
A view uses <tree>, renamed <list> in Odoo 18.0.
Applies to Odoo 18.0 and later.
What it does#
Reports <tree> elements in view archs: list views and the lists of
x2many fields.
Why is this bad?#
Odoo 18.0 renamed the list view type: installing a view with <tree> fails
with “Invalid view type: ‘tree’”.
Example#
<tree string="Orders"><field name="name"/></tree>
Use instead:
<list string="Orders"><field name="name"/></list>
Fix safety#
Safe: the start and end tag are renamed.