~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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        
        <!-- STOCK PICKING WORKFLOW -->
        <record id="stock.act_return_cancel" model="workflow.activity">
            <field name="wkf_id" ref="stock.wkf_picking"/>
            <field name="name">return_cancel</field>
            <field name="flow_stop">True</field>
            <field name="kind">function</field>
            <field name="action">write({'state':'cancel'})</field>
        </record>
        
        <record id="trans_assigned_return_cancel" model="workflow.transition">
            <field name="act_from" ref="stock.act_assigned"/>
            <field name="act_to" ref="stock.act_return_cancel"/>
            <field name="signal">return_cancel</field>
        </record>

        <record id="trans_assigned_draft" model="workflow.transition">
            <field name="act_from" ref="stock.act_assigned" />
            <field name="act_to" ref="stock.act_draft" />
            <field name="signal">convert_to_picking_ticket</field>
        </record>

        <record id="trans_confiremd_draft" model="workflow.transition">
            <field name="act_from" ref="stock.act_confirmed" />
            <field name="act_to" ref="stock.act_draft" />
            <field name="signal">convert_to_picking_ticket</field>
        </record>

    </data>
</openerp>