Calendar views
As the name suggests, this view type presents the records in a calendar that can be viewed at different periods of time: per month, week, or day. A calendar view for the To-Do Tasks could look like this:
<record id="view_calendar_todo_task" model="ir.ui.view">
<field name="model">todo.task</field>
<field name="arch" type="xml">
<calendar date_start="date_deadline" color="user_id">
<!-- Fields used for the display text -->
<field name="name" />
<field name="stage_id" />
</calendar>
</field>
</record> The calendar attributes are:
date_startis the field for the start date. Mandatory.date_endis the field for the end date. Optional.date_delayis the field with the duration of days, which can be used instead ofdate_end.all_dayprovides the name of a Boolean field that is to be used to signal full day events. In these events, the duration is ignored.coloris the field used...