~eduardo-bayardo-bias/openobject-addons/addons_interface

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>
        <!-- Activity -->


        <record id="act_pre_approve" model="workflow.activity">
            <field name="wkf_id" ref="sale.wkf_sale"/>
            <field name="name">pre_approve</field>
            <field name="kind">function</field>
            <field name="action">write({'state':'pre_approve'})</field>
        </record>


        <!-- Transistion -->

        <record id="sale.trans_draft_router" model="workflow.transition">
            <field name="act_from" ref="sale.act_draft"/>
            <field name="act_to" ref="act_pre_approve"/>
            <field name="signal">order_pre_approve</field>
            <field name="condition">check_limit()</field>
        </record>
        <record id="trans_pre_approve_cancel" model="workflow.transition">
            <field name="act_from" ref="act_pre_approve"/>
            <field name="act_to" ref="sale.act_cancel"/>
            <field name="signal">cancel</field>
        </record>
        <record id="trans_pre_approve_router" model="workflow.transition">
            <field name="act_from" ref="act_pre_approve"/>
            <field name="act_to" ref="sale.act_router"/>
            <field name="signal">order_confirm</field>
            <field name="condition">check_limit()</field>
        </record>


    </data>
</openerp>