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