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

« back to all changes in this revision

Viewing changes to stock_override/stock_workflow.xml

  • Committer: jf
  • Date: 2011-03-23 13:23:55 UTC
  • Revision ID: jf@tempo4-20110323132355-agyf1soy7m5ewatr
Initial Import

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="utf-8" ?>
2
 
<openerp>
3
 
    <data>
4
 
 
5
 
        <record id="act_manually_done" model="workflow.activity">
6
 
            <field name="wkf_id" ref="stock.wkf_picking"/>
7
 
            <field name="name">manually_done</field>
8
 
            <field name="kind">function</field>
9
 
            <field name="action">set_manually_done()</field>
10
 
        </record>
11
 
 
12
 
        <record id="act_shipped" model="workflow.activity">
13
 
            <field name="wkf_id" ref="stock.wkf_picking"/>
14
 
            <field name="name">shipped</field>
15
 
            <field name="kind">function</field>
16
 
            <field name="action">action_shipped_wkf()</field>
17
 
        </record>
18
 
 
19
 
        <record id="trans_draft_manual_done" model="workflow.transition">
20
 
            <field name="act_from" ref="stock.act_draft" />
21
 
            <field name="act_to" ref="act_manually_done" />
22
 
            <field name="signal">manually_done</field>
23
 
        </record>
24
 
        <record id="trans_confirmed_manual_done" model="workflow.transition">
25
 
            <field name="act_from" ref="stock.act_confirmed" />
26
 
            <field name="act_to" ref="act_manually_done" />
27
 
            <field name="signal">manually_done</field>
28
 
        </record>
29
 
        <record id="trans_assigned_manual_done" model="workflow.transition">
30
 
            <field name="act_from" ref="stock.act_assigned" />
31
 
            <field name="act_to" ref="act_manually_done" />
32
 
            <field name="signal">manually_done</field>
33
 
        </record>
34
 
        
35
 
        <record id="trans_shipped_manual_done" model="workflow.transition">
36
 
            <field name="act_from" ref="act_shipped" />
37
 
            <field name="act_to" ref="act_manually_done" />
38
 
            <field name="signal">manually_done</field>
39
 
        </record>
40
 
        <record id="trans_move_manual_done" model="workflow.transition">
41
 
            <field name="act_from" ref="stock.act_move" />
42
 
            <field name="act_to" ref="act_manually_done" />
43
 
            <field name="signal">manually_done</field>
44
 
        </record>
45
 
        <record id="trans_manual_done_done" model="workflow.transition">
46
 
            <field name="act_from" ref="act_manually_done" />
47
 
            <field name="act_to" ref="stock.act_cancel" />
48
 
        </record>
49
 
 
50
 
                <!-- UF-1617: Workflow for the new "shipped" state in IN when an OUT is partially delivered -->
51
 
        <record id="trans_draft_shipped" model="workflow.transition">
52
 
            <field name="act_from" ref="stock.act_draft"/>
53
 
            <field name="act_to" ref="act_shipped"/>
54
 
            <field name="signal">button_shipped</field>
55
 
        </record>
56
 
                
57
 
        <record id="trans_shipped_done" model="workflow.transition">
58
 
            <field name="act_from" ref="act_shipped"/>
59
 
            <field name="act_to" ref="stock.act_move"/>
60
 
            <field name="signal">button_done</field>
61
 
        </record>
62
 
 
63
 
        <record id="act_return_cancel" model="workflow.activity">
64
 
            <field name="wkf_id" ref="stock.wkf_picking"/>
65
 
            <field name="name">return_cancel</field>
66
 
            <field name="flow_stop">True</field>
67
 
            <field name="kind">function</field>
68
 
            <field name="action">write({'state':'cancel'})</field>
69
 
        </record>
70
 
 
71
 
        <record id="trans_shipped_return_cancel" model="workflow.transition">
72
 
            <field name="act_from" ref="act_shipped"/>
73
 
            <field name="act_to" ref="act_return_cancel"/>
74
 
            <field name="signal">return_cancel</field>
75
 
        </record>
76
 
 
77
 
        <record id="trans_shipped_move_done" model="workflow.transition">
78
 
            <field name="act_from" ref="act_shipped"/>
79
 
            <field name="act_to" ref="stock.act_move"/>
80
 
            <field name="condition">test_done()</field>
81
 
        </record>
82
 
        <record id="trans_shipped_move" model="workflow.transition">
83
 
            <field name="act_from" ref="act_shipped"/>
84
 
            <field name="act_to" ref="stock.act_move"/>
85
 
            <field name="condition">auto_picking and test_auto_picking()</field>
86
 
        </record>
87
 
        
88
 
        <record id="trans_shipped_cancel" model="workflow.transition">
89
 
            <field name="act_from" ref="act_shipped"/>
90
 
            <field name="act_to" ref="stock.act_cancel"/>
91
 
                         <field name="condition">allow_cancel()</field>
92
 
            <field name="signal">button_cancel</field>
93
 
        </record>
94
 
 
95
 
        <record id="trans_shipped_cancel_auto" model="workflow.transition">
96
 
            <field name="act_from" ref="act_shipped"/>
97
 
            <field name="act_to" ref="stock.act_cancel"/>
98
 
            <field name="condition">test_cancel()</field>
99
 
        </record>
100
 
 
101
 
        <record id="trans_shipped_cancel_auto" model="workflow.transition">
102
 
            <field name="act_from" ref="act_shipped"/>
103
 
            <field name="act_to" ref="stock.act_cancel"/>
104
 
            <field name="condition">test_cancel()</field>
105
 
        </record>
106
 
 
107
 
    </data>
108
 
</openerp>