-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcnab_workflow.xml
37 lines (33 loc) · 1.33 KB
/
cnab_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="wkf" model="workflow">
<field name="name">cnab.basico</field>
<field name="osv">cnab.cnab</field>
<field name="on_create">True</field>
</record>
<record id="act_draft" model="workflow.activity">
<field name="wkf_id" ref="wkf"/>
<field name="name">draft</field>
<field name="flow_start">True</field>
<field name="action">write({'state':'draft'})</field>
<field name="kind">function</field>
</record>
<record id="act_lancado" model="workflow.activity">
<field name="wkf_id" ref="wkf"/>
<field name="name">lancado</field>
<field name="action">write({'state':'done'})</field>
<field name="kind">function</field>
</record>
<record id="t1" model="workflow.transition">
<field name="act_from" ref="act_lancado"/>
<field name="act_to" ref="act_draft"/>
<field name="signal">draft</field>
</record>
<record id="t2" model="workflow.transition">
<field name="act_from" ref="act_draft"/>
<field name="act_to" ref="act_lancado"/>
<field name="signal">lancar</field>
</record>
</data>
</openerp>