Description:
In this video, we are discussing How to add a tree view in odoo 15 inside a custom module. In odoo, Tree View also known as List View shows multiple records in the form of a list (rows and columns).
Each row represents a record of the database table. You can do various operations on Tree view that is sorting, filtering, and groupby. All views are stored in the database, in the ir.model.view model.
To add a view in a module, we declare a <record> element describing the view in an XML file that will be loaded into the database when the module is installed. The root element of a Tree View is <tree>.
Now inside the tree tag define all the important fields that you want to add to the tree view.