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
|
<openerp>
<data>
<record model="workflow.activity" id="act_to_send">
<field name="wkf_id" ref="account.wkf"/>
<field name="name">to_send</field>
<field name="action">write({'state':'to_send'})</field>
<field name="kind">function</field>
</record>
<record model="workflow.activity" id="act_to_valid">
<field name="wkf_id" ref="account.wkf"/>
<field name="name">to_valid</field>
<field name="action">write({'state':'to_valid'})</field>
<field name="kind">function</field>
</record>
<record model="workflow.transition" id="account.t15">
<field name="act_from" ref="account.act_draft"/>
<field name="act_to" ref="act_to_valid"/>
<field name="signal">invoice_to_valid</field>
</record>
<record model="workflow.transition" id="account.t13">
<field name="act_from" ref="act_to_valid"/>
<field name="act_to" ref="act_to_send"/>
<field name="signal">invoice_to_send</field>
</record>
<record model="workflow.transition" id="account.t3">
<field name="act_from" ref="act_to_send"/>
<field name="act_to" ref="account.act_proforma2"/>
<field name="signal">invoice_proforma2</field>
</record>
<record model="workflow.transition" id="account.t4">
<field name="act_from" ref="act_to_send"/>
<field name="act_to" ref="account.act_open"/>
<field name="signal">invoice_open</field>
</record>
<record model="workflow.transition" id="account.t9">
<field name="act_from" ref="act_to_send"/>
<field name="act_to" ref="account.act_cancel"/>
<field name="signal">invoice_cancel</field>
</record>
<record model="workflow.transition" id="account.t16">
<field name="act_from" ref="act_to_valid"/>
<field name="act_to" ref="account.act_cancel"/>
<field name="signal">invoice_cancel</field>
</record>
</data>
</openerp>
|