Exploring list views
List views are probably the most used view type, closely followed by form views. List views present records as lines and data fields as columns. By default, they are read-only, but they can also be made editable.
The list view's basic definition is simple. It is a sequence of field elements inside a <tree>
element. library_checkout
already contains a simple list view, in the views/checkout_view.xml
file, that looks like this:
<record id="view_tree_checkout" model="ir.ui.view"> <field name="name">Checkout Tree</field> <field name="model">library.checkout</field> <field name="arch" type="xml"> <tree> <field name="request_date" /> ...