~unifield-team/unifield-wm/us-671-homere

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
<?xml version="1.0" ?>
<openerp>
<data>

    <record model="workflow" id="wkf_msf_budget">
        <field name="name">wkf.msf.budget</field>
        <field name="osv">msf.budget</field>
        <field name="on_create">True</field>
    </record>

    <record model="workflow.activity" id="act_draft">
        <field name="wkf_id" ref="wkf_msf_budget" />
        <field name="flow_start">True</field>
        <field name="name">draft</field>
        <field name="action">write({'state':'draft'})</field>
        <field name="kind">function</field>
    </record>

    <record model="workflow.activity" id="act_validate">
        <field name="wkf_id" ref="wkf_msf_budget" />
        <field name="name">validate</field>
        <field name="kind">function</field>
        <field name="action">action_confirmed()</field>
    </record>

    <record model="workflow.activity" id="act_done">
        <field name="wkf_id" ref="wkf_msf_budget" />
        <field name="name">done</field>
        <field name="flow_stop">True</field>
        <field name="kind">stopall</field>
        <field name="action">write({'state':'done'})</field>

    </record>

    <record model="workflow.transition" id="t1">
        <field name="act_from" ref="act_draft" />
        <field name="act_to" ref="act_validate" />
        <field name="signal">validate</field>
    </record>

    <record model="workflow.transition" id="t2">
        <field name="act_from" ref="act_validate" />
        <field name="act_to" ref="act_done" />
        <field name="signal">done</field>
    </record>
    
</data>
</openerp>