Other types of views
The most frequent view types used are the form and list views, discussed until now. Other than these, a few other view types are available, and we will give a brief overview on each of them. Kanban views won't be addressed now, since we will cover them in Chapter 8, QWeb – Creating Kanban Views and Reports.
Remember that the view types available are defined in the view_mode
attribute of the corresponding window action.
Calendar views
As the name suggests, this view presents the records in a calendar. A calendar view for the to-do tasks could look like this:
<record id="view_calendar_todo_task" model="ir.ui.view"> <field name="name">view_calendar_todo_task</field> <field name="model">todo.task</field> <field name="arch" type="xml"> <calendar date_start="date_deadline" color="user_id" display="[name], Stage [stage_id]"> <!-- Fields used for the text of display attribute --> <field name=...