forked from ITPS/oerp_gap_analysis_ITPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgap_analysis_workflow.xml
57 lines (52 loc) · 2.43 KB
/
gap_analysis_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="wkf_gap_analysis" model="workflow">
<field name="name">gap_analysis.basic</field>
<field name="osv">gap_analysis</field>
<field name="on_create">True</field>
</record>
<!-- Activity -->
<record id="act_gap_analysis_draft" model="workflow.activity">
<field name="wkf_id" ref="wkf_gap_analysis"/>
<field name="flow_start">True</field>
<field name="name">draft</field>
<field name="action">write({'state':'draft', 'date_confirm': False})</field>
</record>
<record id="act_gap_analysis_done" model="workflow.activity">
<field name="wkf_id" ref="wkf_gap_analysis"/>
<field name="name">done</field>
<field name="flow_stop">True</field>
<field name="kind">function</field>
<field name="action">action_done()</field>
</record>
<record id="act_gap_analysis_cancel" model="workflow.activity">
<field name="wkf_id" ref="wkf_gap_analysis"/>
<field name="name">cancel</field>
<field name="flow_stop">True</field>
<field name="kind">function</field>
<field name="action">write({'state':'cancel'})</field>
</record>
<!-- Transition -->
<record id="trans_gap_draft_done" model="workflow.transition">
<field name="act_from" ref="act_gap_analysis_draft"/>
<field name="act_to" ref="act_gap_analysis_done"/>
<field name="signal">confirm</field>
</record>
<record id="trans_gap_draft_cancel" model="workflow.transition">
<field name="act_from" ref="act_gap_analysis_done"/>
<field name="act_to" ref="act_gap_analysis_cancel"/>
<field name="signal">cancel</field>
</record>
<record id="trans_gap_cancel_draft" model="workflow.transition">
<field name="act_from" ref="act_gap_analysis_cancel"/>
<field name="act_to" ref="act_gap_analysis_draft"/>
<field name="signal">change</field>
</record>
<record id="trans_gap_done_draft" model="workflow.transition">
<field name="act_from" ref="act_gap_analysis_done"/>
<field name="act_to" ref="act_gap_analysis_draft"/>
<field name="signal">reopen</field>
</record>
</data>
</openerp>