This is the documentation for older versions of Odoo (formerly OpenERP).

See the new Odoo user documentation.

See the new Odoo technical documentation.

Calendar Views

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

View Specification

这有一个视图例子:

<calendar color="user_id" date_delay="planned_hours" date_start="date_start" string="Tasks">
    <field name="name"/>
    <field name="project_id"/>
</calendar>

下面是该视图标签的属性:

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/6.0/_images/calendar_month.png

Week Calendar:

/doc_static/6.0/_images/calendar_week.png