~openerp-community/openobject-doc/ksa-openobject-doc-6.0

« back to all changes in this revision

Viewing changes to i18n/ru/source/developer/2_6_views_events/views/gantt_view.rst

  • Committer: Don Kirkby
  • Date: 2011-02-21 20:46:11 UTC
  • mfrom: (433.1.53 openobject-doc)
  • Revision ID: donkirkby+launpd@gmail.com-20110221204611-1ykt6dmg4k3gh5dh
[MERGE] revisions 477 to 486 from the 5.0 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
.. i18n: Gantt Views
 
3
.. i18n: ===========
 
4
..
 
5
 
 
6
Gantt Views
 
7
===========
 
8
 
 
9
.. i18n: Gantt view provides timeline view for the data. Generally, it can be used to display
 
10
.. i18n: project tasks and resource allocation.
 
11
..
 
12
 
 
13
Gantt view provides timeline view for the data. Generally, it can be used to display
 
14
project tasks and resource allocation.
 
15
 
 
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.
 
19
..
 
20
 
 
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
 
23
planned to take.
 
24
 
 
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.
 
27
..
 
28
 
 
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.
 
31
 
 
32
.. i18n: Color coding of the summary bar is as follows:
 
33
..
 
34
 
 
35
Color coding of the summary bar is as follows:
 
36
 
 
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
 
40
..
 
41
 
 
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
 
45
 
 
46
.. i18n: View Specification
 
47
.. i18n: ------------------
 
48
..
 
49
 
 
50
View Specification
 
51
------------------
 
52
 
 
53
.. i18n: Here is an example view:
 
54
..
 
55
 
 
56
Here is an example view:
 
57
 
 
58
.. i18n: .. code-block:: xml
 
59
.. i18n: 
 
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"/>
 
63
.. i18n:         </level>
 
64
.. i18n:     </gantt>
 
65
..
 
66
 
 
67
.. code-block:: xml
 
68
 
 
69
    <gantt color="user_id" date_delay="planned_hours" date_start="date_start" string="Tasks">
 
70
        <level object="project.project" link="project_id" domain="[]">
 
71
            <field name="name"/>
 
72
        </level>
 
73
    </gantt>
 
74
 
 
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.
 
78
..
 
79
 
 
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.
 
83
 
 
84
.. i18n: Here is the list of supported attributes for ``gantt`` tag:
 
85
..
 
86
 
 
87
Here is the list of supported attributes for ``gantt`` tag:
 
88
 
 
89
.. i18n:     ``string``
 
90
.. i18n:         The title string for the view.
 
91
..
 
92
 
 
93
    ``string``
 
94
        The title string for the view.
 
95
 
 
96
.. i18n:     ``date_start``
 
97
.. i18n:         A ``datetime`` field to specify the starting date for the gantt item. This 
 
98
.. i18n:         attribute is required.
 
99
.. i18n:         
 
100
.. i18n:     ``date_stop``
 
101
.. i18n:         A ``datetime`` field to specify the end date. Ignored if ``date_delay`` 
 
102
.. i18n:         attribute is specified.
 
103
.. i18n:         
 
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.
 
107
.. i18n:         
 
108
.. i18n:     ``day_length``
 
109
.. i18n:         An ``integer`` value to specify working day length. Default is ``8`` hours.
 
110
.. i18n:         
 
111
.. i18n:     ``color``
 
112
.. i18n:         A field, generally ``many2one``, to colorize calendar/gantt items.
 
113
.. i18n:         
 
114
.. i18n:     ``mode``
 
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``):
 
117
.. i18n:         
 
118
.. i18n:         * ``day``
 
119
.. i18n:         * ``3days``
 
120
.. i18n:         * ``week``
 
121
.. i18n:         * ``3weeks``
 
122
.. i18n:         * ``month``
 
123
.. i18n:         * ``3months``
 
124
.. i18n:         * ``year``
 
125
.. i18n:         * ``3years``
 
126
.. i18n:         * ``5years``
 
127
..
 
128
 
 
129
    ``date_start``
 
130
        A ``datetime`` field to specify the starting date for the gantt item. This 
 
131
        attribute is required.
 
132
        
 
133
    ``date_stop``
 
134
        A ``datetime`` field to specify the end date. Ignored if ``date_delay`` 
 
135
        attribute is specified.
 
136
        
 
137
    ``date_delay``
 
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.
 
140
        
 
141
    ``day_length``
 
142
        An ``integer`` value to specify working day length. Default is ``8`` hours.
 
143
        
 
144
    ``color``
 
145
        A field, generally ``many2one``, to colorize calendar/gantt items.
 
146
        
 
147
    ``mode``
 
148
        A string value to set default view/zoom mode. For ``gantt`` view, this can be
 
149
        one of following (default is ``month``):
 
150
        
 
151
        * ``day``
 
152
        * ``3days``
 
153
        * ``week``
 
154
        * ``3weeks``
 
155
        * ``month``
 
156
        * ``3months``
 
157
        * ``year``
 
158
        * ``3years``
 
159
        * ``5years``
 
160
 
 
161
.. i18n: The ``level`` tag supports following attributes:
 
162
..
 
163
 
 
164
The ``level`` tag supports following attributes:
 
165
 
 
166
.. i18n:     ``object``
 
167
.. i18n:         An openerp object having many2one relationship with view object.
 
168
..
 
169
 
 
170
    ``object``
 
171
        An openerp object having many2one relationship with view object.
 
172
 
 
173
.. i18n:     ``link``
 
174
.. i18n:         The field name in current object that links to the given ``object``.
 
175
..
 
176
 
 
177
    ``link``
 
178
        The field name in current object that links to the given ``object``.
 
179
 
 
180
.. i18n:     ``domain``
 
181
.. i18n:         The domain to be used to filter the given ``object`` records.
 
182
..
 
183
 
 
184
    ``domain``
 
185
        The domain to be used to filter the given ``object`` records.
 
186
 
 
187
.. i18n: Drag and Drop
 
188
.. i18n: -------------
 
189
..
 
190
 
 
191
Drag and Drop
 
192
-------------
 
193
 
 
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.
 
196
..
 
197
 
 
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.
 
200
 
 
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.
 
204
..
 
205
 
 
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.
 
209
 
 
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.
 
212
..
 
213
 
 
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.
 
216
 
 
217
.. i18n: .. note::
 
218
.. i18n: 
 
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.
 
221
.. i18n:     
 
222
.. i18n: Screenshots
 
223
.. i18n: -----------
 
224
.. i18n:     
 
225
.. i18n: .. figure::  images/gantt.png
 
226
.. i18n:     :scale: 50%
 
227
.. i18n:     :align: center
 
228
..
 
229
 
 
230
.. note::
 
231
 
 
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.
 
234
    
 
235
Screenshots
 
236
-----------
 
237
    
 
238
.. figure::  images/gantt.png
 
239
    :scale: 50%
 
240
    :align: center