~unifield-team/unifield-wm/us-826

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

        <record id="wkf" model="workflow">
            <field name="name">wkf.financing.contract</field>
            <field name="osv">financing.contract.contract</field>
            <field name="on_create">True</field>
        </record>

        <record id="act_draft" model="workflow.activity">
            <field name="wkf_id" ref="wkf"/>
            <field name="flow_start">True</field>
            <field name="name">draft</field>
        </record>

        <record id="act_open" model="workflow.activity">
            <field name="wkf_id" ref="wkf"/>
            <field name="name">open</field>
            <field name="action">contract_open()</field>
            <field name="kind">function</field>
        </record>
        
        <record id="act_soft_closed" model="workflow.activity">
            <field name="wkf_id" ref="wkf"/>
            <field name="name">soft_closed</field>
            <field name="action">contract_soft_closed()</field>
            <field name="kind">function</field>
        </record>
        
        <record id="act_hard_closed" model="workflow.activity">
            <field name="wkf_id" ref="wkf"/>
            <field name="name">hard_closed</field>
            <field name="flow_stop">True</field>
            <field name="action">contract_hard_closed()</field>
            <field name="kind">function</field>
        </record>

        <record id="t1" model="workflow.transition">
            <field name="act_from" ref="act_draft"/>
            <field name="act_to" ref="act_open"/>
            <field name="signal">contract_open</field>
        </record>
        
        <record id="t2" model="workflow.transition">
            <field name="act_from" ref="act_open"/>
            <field name="act_to" ref="act_soft_closed"/>
            <field name="signal">contract_soft_closed</field>
        </record>
        
        <record id="t3" model="workflow.transition">
            <field name="act_from" ref="act_soft_closed"/>
            <field name="act_to" ref="act_hard_closed"/>
            <field name="signal">contract_hard_closed</field>
        </record>
        
        <record id="t4" model="workflow.transition">
            <field name="act_from" ref="act_soft_closed"/>
            <field name="act_to" ref="act_open"/>
            <field name="signal">contract_reopen</field>
        </record>
        
    </data>
</openerp>