~xrg/openobject-doc/trunk-xrg

« back to all changes in this revision

Viewing changes to i18n/vi/source/book/7/7_18_Process/7_18_Process_workflow.rst

  • Committer: TruongSinh Tran
  • Date: 2009-07-17 18:59:45 UTC
  • Revision ID: truongsinh@vipescoserver-20090717185945-ajjp3zso6xh5jddm
[FIX]private issue

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
.. i18n: .. index:: 
 
3
.. i18n:    single: process
 
4
.. i18n:    single: workflow
 
5
 
 
6
.. index:: 
 
7
   single: process
 
8
   single: workflow
 
9
 
 
10
.. i18n: Workflows and User Processes
 
11
.. i18n: =============================
 
12
 
 
13
Workflows and User Processes
 
14
=============================
 
15
 
 
16
.. i18n: Workflows are used to define the behaviour of a given document. They are used
 
17
.. i18n: by developers and system implementers to determine which object should execute
 
18
.. i18n: which actions and at which moments. These are principally technical processes
 
19
.. i18n: defined in a vertical way on the lifecycle of a complete object (represented by
 
20
.. i18n: a document). Changing a workflow will have a direct impact on the behaviour of
 
21
.. i18n: the software in response to user actions. You handle all possible exceptions
 
22
.. i18n: there so that the software is robust.
 
23
 
 
24
Workflows are used to define the behaviour of a given document. They are used
 
25
by developers and system implementers to determine which object should execute
 
26
which actions and at which moments. These are principally technical processes
 
27
defined in a vertical way on the lifecycle of a complete object (represented by
 
28
a document). Changing a workflow will have a direct impact on the behaviour of
 
29
the software in response to user actions. You handle all possible exceptions
 
30
there so that the software is robust.
 
31
 
 
32
.. i18n: .. figure:: images/process_sale_workflow.png
 
33
.. i18n:    :scale: 75
 
34
.. i18n:    :align: center
 
35
.. i18n: 
 
36
.. i18n:    *Example of a workflow handling a customer order*
 
37
 
 
38
.. figure:: images/process_sale_workflow.png
 
39
   :scale: 75
 
40
   :align: center
 
41
 
 
42
   *Example of a workflow handling a customer order*
 
43
 
 
44
.. i18n: Unlike workflows, user processes represent workflows across all of a company
 
45
.. i18n: and its documents. They are used by end users to locate an action for more
 
46
.. i18n: complete handling. A change of user process won't have any effect on the
 
47
.. i18n: software but will show the user another way of working on a given problem.
 
48
 
 
49
Unlike workflows, user processes represent workflows across all of a company
 
50
and its documents. They are used by end users to locate an action for more
 
51
complete handling. A change of user process won't have any effect on the
 
52
software but will show the user another way of working on a given problem.
 
53
 
 
54
.. i18n: .. figure:: images/process_sale_process.png
 
55
.. i18n:    :scale: 75
 
56
.. i18n:    :align: center
 
57
.. i18n: 
 
58
.. i18n:    *Example of a process handling a customer order*
 
59
 
 
60
.. figure:: images/process_sale_process.png
 
61
   :scale: 75
 
62
   :align: center
 
63
 
 
64
   *Example of a process handling a customer order*
 
65
 
 
66
.. i18n: Processes are used by end users to help them understand the problems which
 
67
.. i18n: haven't been handled in Open ERP. You can find actions that have no influence
 
68
.. i18n: on the software, such as “Telephone customer to thank him”, and “Send a fax to
 
69
.. i18n: reassure him”. As well as providing user help, processes provide functions such
 
70
.. i18n: as:
 
71
 
 
72
Processes are used by end users to help them understand the problems which
 
73
haven't been handled in Open ERP. You can find actions that have no influence
 
74
on the software, such as “Telephone customer to thank him”, and “Send a fax to
 
75
reassure him”. As well as providing user help, processes provide functions such
 
76
as:
 
77
 
 
78
.. i18n: * integration with Open ERP help and the company's quality manual,
 
79
.. i18n: 
 
80
.. i18n: * showing the user menu for finding a specific document.
 
81
 
 
82
* integration with Open ERP help and the company's quality manual,
 
83
 
 
84
* showing the user menu for finding a specific document.
 
85
 
 
86
.. i18n: .. figure:: images/process_cross_worfklow_process.png
 
87
.. i18n:    :scale: 75
 
88
.. i18n:    :align: center
 
89
.. i18n: 
 
90
.. i18n:    *Relationship between workflow and user process*
 
91
 
 
92
.. figure:: images/process_cross_worfklow_process.png
 
93
   :scale: 75
 
94
   :align: center
 
95
 
 
96
   *Relationship between workflow and user process*
 
97
 
 
98
.. i18n: User processes are thus connected to technical workflows. If you modify the
 
99
.. i18n: software's behaviour with a workflow, the changes will be directly visible in
 
100
.. i18n: the user processes that are based on the modified document. So if you add new
 
101
.. i18n: required roles for certain transitions on a workflow they will automatically be
 
102
.. i18n: shown in the process corresponding to the modified document.
 
103
 
 
104
User processes are thus connected to technical workflows. If you modify the
 
105
software's behaviour with a workflow, the changes will be directly visible in
 
106
the user processes that are based on the modified document. So if you add new
 
107
required roles for certain transitions on a workflow they will automatically be
 
108
shown in the process corresponding to the modified document.
 
109
 
 
110
.. i18n: To get maximum benefit from the power of user processes and the workflow
 
111
.. i18n: engine, Open ERP provides an integrated workflow editor and user process
 
112
.. i18n: editor. This enable you to modify them through the client interface.
 
113
 
 
114
To get maximum benefit from the power of user processes and the workflow
 
115
engine, Open ERP provides an integrated workflow editor and user process
 
116
editor. This enable you to modify them through the client interface.
 
117
 
 
118
.. i18n: You'll only work with the process editor in this chapter. If you want to test the
 
119
.. i18n: workflow editor click on the link to the bottom left of a document and select
 
120
.. i18n: the menu :menuselection:`Customize --> Manage Workflows`. Open ERP opens a graphical editor to
 
121
.. i18n: modify the workflow for the selected document type.
 
122
 
 
123
You'll only work with the process editor in this chapter. If you want to test the
 
124
workflow editor click on the link to the bottom left of a document and select
 
125
the menu :menuselection:`Customize --> Manage Workflows`. Open ERP opens a graphical editor to
 
126
modify the workflow for the selected document type.
 
127
 
 
128
.. i18n: .. figure:: images/process_workflow_editor.png
 
129
.. i18n:    :scale: 75
 
130
.. i18n:    :align: center
 
131
.. i18n: 
 
132
.. i18n:    *Workflow editor modifying the behaviour of invoices*
 
133
 
 
134
.. figure:: images/process_workflow_editor.png
 
135
   :scale: 75
 
136
   :align: center
 
137
 
 
138
   *Workflow editor modifying the behaviour of invoices*
 
139
 
 
140
.. i18n: The workflow editor is only available in Open ERP's web client at the time of writing. 
 
141
.. i18n: If you have the GTK client you can use the menus in
 
142
.. i18n: :menuselection:`Administration --> Low Level Objects --> Workflow Items`.
 
143
.. i18n: These are text-based not graphical.
 
144
 
 
145
The workflow editor is only available in Open ERP's web client at the time of writing. 
 
146
If you have the GTK client you can use the menus in
 
147
:menuselection:`Administration --> Low Level Objects --> Workflow Items`.
 
148
These are text-based not graphical.
 
149
 
 
150
.. i18n: Using processes effectively
 
151
.. i18n: ----------------------------
 
152
 
 
153
Using processes effectively
 
154
----------------------------
 
155
 
 
156
.. i18n: Regardless of which Open ERP screen you're in you can call up a process on the
 
157
.. i18n: current document by clicking the :guilabel:`Process` icon. Depending on the document you
 
158
.. i18n: can have several processes defined using it, Open ERP then asks you to choose
 
159
.. i18n: which one of them you want.
 
160
 
 
161
Regardless of which Open ERP screen you're in you can call up a process on the
 
162
current document by clicking the :guilabel:`Process` icon. Depending on the document you
 
163
can have several processes defined using it, Open ERP then asks you to choose
 
164
which one of them you want.
 
165
 
 
166
.. i18n: For example if you are in a meeting form, Open ERP will ask you to choose from
 
167
.. i18n: the processes it knows about that involve such forms:
 
168
 
 
169
For example if you are in a meeting form, Open ERP will ask you to choose from
 
170
the processes it knows about that involve such forms:
 
171
 
 
172
.. i18n: * processes for selecting and inducting new employees,
 
173
.. i18n: 
 
174
.. i18n: * tracing customer orders in pre-sales,
 
175
.. i18n: 
 
176
.. i18n: * processes for visiting customers and handling expenses.
 
177
 
 
178
* processes for selecting and inducting new employees,
 
179
 
 
180
* tracing customer orders in pre-sales,
 
181
 
 
182
* processes for visiting customers and handling expenses.
 
183
 
 
184
.. i18n: .. figure:: images/process_screen.png
 
185
.. i18n:    :scale: 75
 
186
.. i18n:    :align: center
 
187
.. i18n: 
 
188
.. i18n:    *Button for entering a user process from a form*
 
189
 
 
190
.. figure:: images/process_screen.png
 
191
   :scale: 75
 
192
   :align: center
 
193
 
 
194
   *Button for entering a user process from a form*
 
195
 
 
196
.. i18n: The element colored red shows the active process for the selected document.
 
197
.. i18n: Elements in grey are the states that the selected document won't go through
 
198
.. i18n: because of its configuration. You can use the different icons to open the
 
199
.. i18n: document, print it, or get its documentation.
 
200
 
 
201
The element colored red shows the active process for the selected document.
 
202
Elements in grey are the states that the selected document won't go through
 
203
because of its configuration. You can use the different icons to open the
 
204
document, print it, or get its documentation.
 
205
 
 
206
.. i18n: Some states have an image inside of arrows formed into a circle. These show
 
207
.. i18n: that the state refers to another process. To go to this other process you can
 
208
.. i18n: click on the title of the state. For example you can click on the invoice in
 
209
.. i18n: the customer order management workflow to see in detail how that invoice is
 
210
.. i18n: handled.
 
211
 
 
212
Some states have an image inside of arrows formed into a circle. These show
 
213
that the state refers to another process. To go to this other process you can
 
214
click on the title of the state. For example you can click on the invoice in
 
215
the customer order management workflow to see in detail how that invoice is
 
216
handled.
 
217
 
 
218
.. i18n: .. figure:: images/process_subflow_icon.png
 
219
.. i18n:    :scale: 75
 
220
.. i18n:    :align: center
 
221
.. i18n: 
 
222
.. i18n:    *A state that refers to another workflow*
 
223
 
 
224
.. figure:: images/process_subflow_icon.png
 
225
   :scale: 75
 
226
   :align: center
 
227
 
 
228
   *A state that refers to another workflow*
 
229
 
 
230
.. i18n: Finally, you can place your mouse for a second over a transition (hover over a
 
231
.. i18n: transition) to get a help balloon appearing about this transition. Open ERP
 
232
.. i18n: then shows you:
 
233
 
 
234
Finally, you can place your mouse for a second over a transition (hover over a
 
235
transition) to get a help balloon appearing about this transition. Open ERP
 
236
then shows you:
 
237
 
 
238
.. i18n: * A description of the transition,
 
239
.. i18n: 
 
240
.. i18n: * The actions you can take at this step,
 
241
.. i18n: 
 
242
.. i18n: * The roles you need to make anything happen from this step.
 
243
 
 
244
* A description of the transition,
 
245
 
 
246
* The actions you can take at this step,
 
247
 
 
248
* The roles you need to make anything happen from this step.
 
249
 
 
250
.. i18n: .. figure:: images/process_transition.png
 
251
.. i18n:    :scale: 75
 
252
.. i18n:    :align: center
 
253
.. i18n: 
 
254
.. i18n:    *Detail of a transition in a workflow*
 
255
 
 
256
.. figure:: images/process_transition.png
 
257
   :scale: 75
 
258
   :align: center
 
259
 
 
260
   *Detail of a transition in a workflow*
 
261
 
 
262
.. i18n: If you click on the transition, Open ERP opens a dialog box with buttons that
 
263
.. i18n: enable you to change the document state. These are the same buttons that you
 
264
.. i18n: see on the active document form. They enable you to confirm an order directly
 
265
.. i18n: from the process and then see the consequences in real time at a macro level.
 
266
 
 
267
If you click on the transition, Open ERP opens a dialog box with buttons that
 
268
enable you to change the document state. These are the same buttons that you
 
269
see on the active document form. They enable you to confirm an order directly
 
270
from the process and then see the consequences in real time at a macro level.
 
271
 
 
272
.. i18n: .. index::
 
273
.. i18n:    single: process; defining
 
274
 
 
275
.. index::
 
276
   single: process; defining
 
277
 
 
278
.. i18n: Defining your own user processes
 
279
.. i18n: ---------------------------------
 
280
 
 
281
Defining your own user processes
 
282
---------------------------------
 
283
 
 
284
.. i18n: Use the menus under :menuselection:`Administration --> Customization --> Enterprise Processes` to
 
285
.. i18n: define new processes or modify existing processes. When entering a process,
 
286
.. i18n: Open ERP shows you the list of states available for that process.
 
287
 
 
288
Use the menus under :menuselection:`Administration --> Customization --> Enterprise Processes` to
 
289
define new processes or modify existing processes. When entering a process,
 
290
Open ERP shows you the list of states available for that process.
 
291
 
 
292
.. i18n: .. figure:: images/process_form.png
 
293
.. i18n:    :scale: 75
 
294
.. i18n:    :align: center
 
295
.. i18n: 
 
296
.. i18n:    *Form for defining a process*
 
297
 
 
298
.. figure:: images/process_form.png
 
299
   :scale: 75
 
300
   :align: center
 
301
 
 
302
   *Form for defining a process*
 
303
 
 
304
.. i18n: You can add a new state or modify an existing state. A state can be associated
 
305
.. i18n: with an object (whose instances are represented by documents). If that is the
 
306
.. i18n: case, choose it in the case object. You can set an expression that shows if the
 
307
.. i18n: object can be found in that state or not. Expressions are in Python format. For
 
308
.. i18n: example for the quotation state choose the object ``sale.order`` and set the
 
309
.. i18n: following expression ``object.state == 'draft'`` .
 
310
 
 
311
You can add a new state or modify an existing state. A state can be associated
 
312
with an object (whose instances are represented by documents). If that is the
 
313
case, choose it in the case object. You can set an expression that shows if the
 
314
object can be found in that state or not. Expressions are in Python format. For
 
315
example for the quotation state choose the object ``sale.order`` and set the
 
316
following expression ``object.state == 'draft'`` .
 
317
 
 
318
.. i18n: You can also link to a menu so that users can learn which menu to use to access
 
319
.. i18n: objects in a state. You can set the conditions in which this object is in a
 
320
.. i18n: greyed-out state in the second tab :guilabel:`Conditions`. These expressions, too, are
 
321
.. i18n: encoded in Python format.
 
322
 
 
323
You can also link to a menu so that users can learn which menu to use to access
 
324
objects in a state. You can set the conditions in which this object is in a
 
325
greyed-out state in the second tab :guilabel:`Conditions`. These expressions, too, are
 
326
encoded in Python format.
 
327
 
 
328
.. i18n: Once the node has been defined you should set the transitions leaving this
 
329
.. i18n: object. For each transition you can:
 
330
 
 
331
Once the node has been defined you should set the transitions leaving this
 
332
object. For each transition you can:
 
333
 
 
334
.. i18n: * Give the leaving and destination states,
 
335
.. i18n: 
 
336
.. i18n: * Set up a list of buttons that start various transitions in the process,
 
337
.. i18n: 
 
338
.. i18n: * Map between workflow transitions and the document that's selected,
 
339
.. i18n: 
 
340
.. i18n: * Put an explanatory notice in different languages.
 
341
 
 
342
* Give the leaving and destination states,
 
343
 
 
344
* Set up a list of buttons that start various transitions in the process,
 
345
 
 
346
* Map between workflow transitions and the document that's selected,
 
347
 
 
348
* Put an explanatory notice in different languages.
 
349
 
 
350
.. i18n: .. figure:: images/process_transition_form.png
 
351
.. i18n:    :scale: 75
 
352
.. i18n:    :align: center
 
353
.. i18n: 
 
354
.. i18n:    *Screen for defining a process transition*
 
355
 
 
356
.. figure:: images/process_transition_form.png
 
357
   :scale: 75
 
358
   :align: center
 
359
 
 
360
   *Screen for defining a process transition*
 
361
 
 
362
.. i18n: .. Copyright © Open Object Press. All rights reserved.
 
363
 
 
364
.. Copyright © Open Object Press. All rights reserved.
 
365
 
 
366
.. i18n: .. You may take electronic copy of this publication and distribute it if you don't
 
367
.. i18n: .. change the content. You can also print a copy to be read by yourself only.
 
368
 
 
369
.. You may take electronic copy of this publication and distribute it if you don't
 
370
.. change the content. You can also print a copy to be read by yourself only.
 
371
 
 
372
.. i18n: .. We have contracts with different publishers in different countries to sell and
 
373
.. i18n: .. distribute paper or electronic based versions of this book (translated or not)
 
374
.. i18n: .. in bookstores. This helps to distribute and promote the Open ERP product. It
 
375
.. i18n: .. also helps us to create incentives to pay contributors and authors using author
 
376
.. i18n: .. rights of these sales.
 
377
 
 
378
.. We have contracts with different publishers in different countries to sell and
 
379
.. distribute paper or electronic based versions of this book (translated or not)
 
380
.. in bookstores. This helps to distribute and promote the Open ERP product. It
 
381
.. also helps us to create incentives to pay contributors and authors using author
 
382
.. rights of these sales.
 
383
 
 
384
.. i18n: .. Due to this, grants to translate, modify or sell this book are strictly
 
385
.. i18n: .. forbidden, unless Tiny SPRL (representing Open Object Press) gives you a
 
386
.. i18n: .. written authorisation for this.
 
387
 
 
388
.. Due to this, grants to translate, modify or sell this book are strictly
 
389
.. forbidden, unless Tiny SPRL (representing Open Object Press) gives you a
 
390
.. written authorisation for this.
 
391
 
 
392
.. i18n: .. Many of the designations used by manufacturers and suppliers to distinguish their
 
393
.. i18n: .. products are claimed as trademarks. Where those designations appear in this book,
 
394
.. i18n: .. and Open Object Press was aware of a trademark claim, the designations have been
 
395
.. i18n: .. printed in initial capitals.
 
396
 
 
397
.. Many of the designations used by manufacturers and suppliers to distinguish their
 
398
.. products are claimed as trademarks. Where those designations appear in this book,
 
399
.. and Open Object Press was aware of a trademark claim, the designations have been
 
400
.. printed in initial capitals.
 
401
 
 
402
.. i18n: .. While every precaution has been taken in the preparation of this book, the publisher
 
403
.. i18n: .. and the authors assume no responsibility for errors or omissions, or for damages
 
404
.. i18n: .. resulting from the use of the information contained herein.
 
405
 
 
406
.. While every precaution has been taken in the preparation of this book, the publisher
 
407
.. and the authors assume no responsibility for errors or omissions, or for damages
 
408
.. resulting from the use of the information contained herein.
 
409
 
 
410
.. i18n: .. Published by Open Object Press, Grand Rosière, Belgium
 
411
 
 
412
.. Published by Open Object Press, Grand Rosière, Belgium