Calendar Views

Calendar 视图为数据提供时间线(timeline)/日程表(schedule)视图。

View Specification

这有一个视图例子:

  1. <calendar color="user_id" date_delay="planned_hours" date_start="date_start" string="Tasks">
  2. <field name="name"/>
  3. <field name="project_id"/>
  4. </calendar>

Here is the list of supported attributes for canlendar tag:

string

该视图的标题

date_start

表示开始时间的属性,该字段是必须的。

date_stop

表示结束时间的属性,如果指定了date_delay属性就可以忽视该属性。

date_delay

A numeric field to specify time in hours for a record. This attribute will get preference over date_stop and date_stop will be ignored.

day_length

显示工作时间长度的数字值,默认为8小时

color

A field, generally many2one, to colorize calendar/gantt items.

mode

A string value to set default view/zoom mode. For calendar view, this can be one of following (default is month):

  • day

  • week

  • month

Screenshots

Month Calendar:

/doc_static/5.0/_images/calendar_month.png

Week Calendar:

/doc_static/5.0/_images/calendar_week.png