Defining list views
After having spent quite some time on the form view, we'll now take a quick look at how to define list views. Internally, these are called tree views in some places and list views in others, but given that there is another construction within the Odoo view framework called tree, we'll stick to list here.
How to do it...
- Define your list view:
<record id="tree_all_contacts" model="ir.ui.view">     <field name="model">res.partner</field>     <field name="arch" type="xml">         <tree             decoration-bf="customer_rank > 0"             decoration-danger="supplier_rank > 0"           ...