9
.. i18n: Gantt view provides timeline view for the data. Generally, it can be used to display
10
.. i18n: project tasks and resource allocation.
13
Gantt view provides timeline view for the data. Generally, it can be used to display
14
project tasks and resource allocation.
16
.. i18n: A Gantt chart is a graphical display of all the tasks that a project is composed of.
17
.. i18n: Each bar on the chart is a graphical representation of the length of time the task is
18
.. i18n: planned to take.
21
A Gantt chart is a graphical display of all the tasks that a project is composed of.
22
Each bar on the chart is a graphical representation of the length of time the task is
25
.. i18n: A resource allocation summary bar is shown on top of all the grouped tasks,
26
.. i18n: representing how effectively the resources are allocated among the tasks.
29
A resource allocation summary bar is shown on top of all the grouped tasks,
30
representing how effectively the resources are allocated among the tasks.
32
.. i18n: Color coding of the summary bar is as follows:
35
Color coding of the summary bar is as follows:
37
.. i18n: * `Gray` shows that the resource is not allocated to any task at that time
38
.. i18n: * `Blue` shows that the resource is fully allocated at that time.
39
.. i18n: * `Red` shows that the resource is overallocated
42
* `Gray` shows that the resource is not allocated to any task at that time
43
* `Blue` shows that the resource is fully allocated at that time.
44
* `Red` shows that the resource is overallocated
46
.. i18n: View Specification
47
.. i18n: ------------------
53
.. i18n: Here is an example view:
56
Here is an example view:
58
.. i18n: .. code-block:: xml
60
.. i18n: <gantt color="user_id" date_delay="planned_hours" date_start="date_start" string="Tasks">
61
.. i18n: <level object="project.project" link="project_id" domain="[]">
62
.. i18n: <field name="name"/>
69
<gantt color="user_id" date_delay="planned_hours" date_start="date_start" string="Tasks">
70
<level object="project.project" link="project_id" domain="[]">
75
.. i18n: The ``attributes`` accepted by the ``gantt`` tag are similar to ``calendar`` view tag. The
76
.. i18n: ``level`` tag is used to group the records by some ``many2one`` field. Currently, only
77
.. i18n: one level is supported.
80
The ``attributes`` accepted by the ``gantt`` tag are similar to ``calendar`` view tag. The
81
``level`` tag is used to group the records by some ``many2one`` field. Currently, only
82
one level is supported.
84
.. i18n: Here is the list of supported attributes for ``gantt`` tag:
87
Here is the list of supported attributes for ``gantt`` tag:
90
.. i18n: The title string for the view.
94
The title string for the view.
96
.. i18n: ``date_start``
97
.. i18n: A ``datetime`` field to specify the starting date for the gantt item. This
98
.. i18n: attribute is required.
100
.. i18n: ``date_stop``
101
.. i18n: A ``datetime`` field to specify the end date. Ignored if ``date_delay``
102
.. i18n: attribute is specified.
104
.. i18n: ``date_delay``
105
.. i18n: A ``numeric`` field to specify time in hours for a record. This attribute
106
.. i18n: will get preference over ``date_stop`` and ``date_stop`` will be ignored.
108
.. i18n: ``day_length``
109
.. i18n: An ``integer`` value to specify working day length. Default is ``8`` hours.
112
.. i18n: A field, generally ``many2one``, to colorize calendar/gantt items.
115
.. i18n: A string value to set default view/zoom mode. For ``gantt`` view, this can be
116
.. i18n: one of following (default is ``month``):
121
.. i18n: * ``3weeks``
123
.. i18n: * ``3months``
125
.. i18n: * ``3years``
126
.. i18n: * ``5years``
130
A ``datetime`` field to specify the starting date for the gantt item. This
131
attribute is required.
134
A ``datetime`` field to specify the end date. Ignored if ``date_delay``
135
attribute is specified.
138
A ``numeric`` field to specify time in hours for a record. This attribute
139
will get preference over ``date_stop`` and ``date_stop`` will be ignored.
142
An ``integer`` value to specify working day length. Default is ``8`` hours.
145
A field, generally ``many2one``, to colorize calendar/gantt items.
148
A string value to set default view/zoom mode. For ``gantt`` view, this can be
149
one of following (default is ``month``):
161
.. i18n: The ``level`` tag supports following attributes:
164
The ``level`` tag supports following attributes:
167
.. i18n: An openerp object having many2one relationship with view object.
171
An openerp object having many2one relationship with view object.
174
.. i18n: The field name in current object that links to the given ``object``.
178
The field name in current object that links to the given ``object``.
181
.. i18n: The domain to be used to filter the given ``object`` records.
185
The domain to be used to filter the given ``object`` records.
187
.. i18n: Drag and Drop
188
.. i18n: -------------
194
.. i18n: The left side pane displays list of the tasks grouped by the given ``level`` field.
195
.. i18n: You can reorder or change the group of any records by dragging them.
198
The left side pane displays list of the tasks grouped by the given ``level`` field.
199
You can reorder or change the group of any records by dragging them.
201
.. i18n: The main content pane displays horizontal bars plotted on a timeline grid. A group
202
.. i18n: of bars are summarized with a top summary bar displaying resource allocation of all
203
.. i18n: the underlying tasks.
206
The main content pane displays horizontal bars plotted on a timeline grid. A group
207
of bars are summarized with a top summary bar displaying resource allocation of all
208
the underlying tasks.
210
.. i18n: You can change the task start time by dragging the tasks horizontally. While
211
.. i18n: end time can be changed by dragging right end of a bar.
214
You can change the task start time by dragging the tasks horizontally. While
215
end time can be changed by dragging right end of a bar.
219
.. i18n: The time is calculated considering ``day_length`` so a bar will span more
220
.. i18n: then one day if total time for a task is greater then ``day_length`` value.
225
.. i18n: .. figure:: images/gantt.png
227
.. i18n: :align: center
232
The time is calculated considering ``day_length`` so a bar will span more
233
then one day if total time for a task is greater then ``day_length`` value.
238
.. figure:: images/gantt.png