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

4 by Eduardo Bayardo
set correct date at sale order validation (sock.move, stock.picking)... Create Invoice defaults from pickings
1
<?xml version="1.0" encoding="utf-8"?>
2
<openerp>
3
    <data>
4
        <!-- Activity -->
5
6
7
        <record id="act_pre_approve" model="workflow.activity">
8
            <field name="wkf_id" ref="sale.wkf_sale"/>
9
            <field name="name">pre_approve</field>
10
            <field name="kind">function</field>
11
            <field name="action">write({'state':'pre_approve'})</field>
12
        </record>
13
14
15
        <!-- Transistion -->
16
17
        <record id="sale.trans_draft_router" model="workflow.transition">
18
            <field name="act_from" ref="sale.act_draft"/>
19
            <field name="act_to" ref="act_pre_approve"/>
20
            <field name="signal">order_pre_approve</field>
21
            <field name="condition">check_limit()</field>
22
        </record>
23
        <record id="trans_pre_approve_cancel" model="workflow.transition">
24
            <field name="act_from" ref="act_pre_approve"/>
25
            <field name="act_to" ref="sale.act_cancel"/>
26
            <field name="signal">cancel</field>
27
        </record>
28
        <record id="trans_pre_approve_router" model="workflow.transition">
29
            <field name="act_from" ref="act_pre_approve"/>
30
            <field name="act_to" ref="sale.act_router"/>
31
            <field name="signal">order_confirm</field>
32
            <field name="condition">check_limit()</field>
33
        </record>
34
35
36
    </data>
37
</openerp>