forked from OCA/l10n-italy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
riba_workflow.xml
112 lines (103 loc) · 4.73 KB
/
riba_workflow.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0"?>
<openerp>
<data>
<record model="workflow" id="wkf_riba_distinta">
<field name="name">riba.distinta.wkf</field>
<field name="osv">riba.distinta</field>
<field name="on_create">True</field>
</record>
<record model="workflow.activity" id="act_new">
<field name="wkf_id" ref="wkf_riba_distinta" />
<field name="flow_start">True</field>
<field name="name">new</field>
<field name="kind">function</field>
<field name="action">riba_new()</field>
</record>
<record model="workflow.activity" id="act_accepted">
<field name="wkf_id" ref="wkf_riba_distinta" />
<field name="name">accepted</field>
<field name="kind">function</field>
<field name="action">riba_accepted()</field>
</record>
<record model="workflow.activity" id="act_accredited">
<field name="wkf_id" ref="wkf_riba_distinta" />
<field name="name">accredited</field>
<field name="kind">function</field>
<field name="action">riba_accredited()</field>
</record>
<record model="workflow.activity" id="act_paid">
<field name="wkf_id" ref="wkf_riba_distinta" />
<field name="name">paid</field>
<field name="kind">function</field>
<field name="action">riba_paid()</field>
</record>
<record model="workflow.activity" id="act_unsolved">
<field name="wkf_id" ref="wkf_riba_distinta" />
<field name="name">unsolved</field>
<field name="kind">function</field>
<field name="action">riba_unsolved()</field>
</record>
<record model="workflow.activity" id="act_cancel">
<field name="wkf_id" ref="wkf_riba_distinta" />
<field name="name">cancel</field>
<field name="kind">function</field>
<field name="action">riba_cancel()</field>
<field name="flow_stop">True</field>
</record>
<!-- transitions -->
<record model="workflow.transition" id="new_to_accepted">
<field name="act_from" ref="act_new" />
<field name="act_to" ref="act_accepted" />
<field name="signal">accepted</field>
<field name="condition">test_accepted()</field>
</record>
<record model="workflow.transition" id="accepted_to_accredited">
<field name="act_from" ref="act_accepted" />
<field name="act_to" ref="act_accredited" />
<field name="signal">accredited</field>
</record>
<record model="workflow.transition" id="accredited_to_paid">
<field name="act_from" ref="act_accredited" />
<field name="act_to" ref="act_paid" />
<field name="signal">paid</field>
<field name="condition">test_paid()</field>
</record>
<record model="workflow.transition" id="accepted_to_paid">
<field name="act_from" ref="act_accepted" />
<field name="act_to" ref="act_paid" />
<field name="signal">paid</field>
<field name="condition">test_paid()</field>
</record>
<record model="workflow.transition" id="accepted_to_cancel">
<field name="act_from" ref="act_accepted" />
<field name="act_to" ref="act_cancel" />
<field name="signal">cancel</field>
</record>
<record model="workflow.transition" id="new_to_cancel">
<field name="act_from" ref="act_new" />
<field name="act_to" ref="act_cancel" />
<field name="signal">cancel</field>
</record>
<record model="workflow.transition" id="accredited_to_cancel">
<field name="act_from" ref="act_accredited" />
<field name="act_to" ref="act_cancel" />
<field name="signal">cancel</field>
</record>
<record model="workflow.transition" id="paid_to_cancel">
<field name="act_from" ref="act_paid" />
<field name="act_to" ref="act_cancel" />
<field name="signal">cancel</field>
</record>
<record model="workflow.transition" id="accredited_to_unsolved">
<field name="act_from" ref="act_accredited" />
<field name="act_to" ref="act_unsolved" />
<field name="signal">unsolved</field>
<field name="condition">test_unsolved()</field>
</record>
<record model="workflow.transition" id="unsolved_to_cancel">
<field name="act_from" ref="act_unsolved" />
<field name="act_to" ref="act_cancel" />
<field name="signal">cancel</field>
</record>
</data>
</openerp>