In Odoo, views define the way by which the models/objects are displayed to the user-end. Views are of several types, each view represents a mode of visualization. They make the modules more user-friendly and can vary according to the need. In Odoo we use several types of views such as tree, form, search, calendar, graph, pivot, Kanban, etc. As the name suggests each kind of view is different, the ‘tree’ view provides the list view of objects, the ‘Form’ view displays a single object, the ‘Search’ view helps to filter the objects, etc.
2. INTRODUCTION
❖ In Odoo, views define the way by which the models/objects displayed to the user-end.
❖ Views is of several types, each view represents a mode of visualization. They make the
modules more user-friendly and can vary according to the need.
❖ In Odoo we use several types of views such as tree, form, search, calendar, graph,
pivot, Kanab, etc.
❖ As the name suggests each kind of view is different, the ‘tree’ view provides the list view
of objects, the ‘Form’ view displays a single object, the ‘Search’ view helps to filter the
objects, etc.
7. ❖ In the XML file define tree view with record id, name, model and also define the field names
that should be defined in list view inside <tree> tag.
8. ❖ In the XML file define form view with record id, name, model and also define the field names that
should be defined in form view inside <form> tag.
❖ We can define button inside header tag.and also group the fields by <group> tag.
9. ❖ As the name indicates, this view type represents the records in a calendar type. Therefore it
can be viewed as month, week, or days.
❖ date_start - It is a datetime field to specify the starting date for the calendar item. This
attribute is required.
❖ mode - A string value to set default view/zoom mode. For calendar view, this can be one of
following (default is a month): Day, Week, Month.
10. ❖ Graph views provide a graphical view of the data, in the form of Bar chart, Pie chart, and Line
chart.
❖ The default type of the graph is a pie chart - to change it to a bar chart, we need to specify the
type. You also may change the orientation. The first field is the X-axis. The second one is the
Y-axis and the optional third one is the Z-axis for 3-dimensional graphs.
❖ types - Bar(default), Pie: Circular Representation, Line: Linear Representation
11. For More
Details
Check our company website for related blogs and Odoo
book.
Fields and Parameters in Odoo
Check our YouTube channel for functional and technical
videos in Odoo.
Basic Views in Odoo 15 | Odoo 15 Development
Tutorials