1
<?xml version="1.0" encoding="utf-8"?>
5
<record id="purchase.act_done" model="workflow.activity">
6
<field name="wkf_id" ref="purchase.purchase_order"/>
7
<field name="name">done</field>
8
<field name="flow_stop" eval="False"/>
9
<field name="kind">function</field>
10
<field name="action">write({'state':'done'})</field>
11
<field name="join_mode">AND</field>
14
<record id="act_reopen" model="workflow.activity">
15
<field name="wkf_id" ref="purchase.purchase_order"/>
16
<field name="name">reopen</field>
17
<field name="action">action_reopen()
19
<field name="kind">function</field>
22
<record id="trans_router_reopen" model="workflow.transition">
23
<field name="act_from" ref="purchase.act_router"/>
24
<field name="act_to" ref="act_reopen"/>
25
<field name="condition">allow_reopen()</field>
26
<field name="signal">button_reopen</field>
29
<record id="trans_waitship_reopen" model="workflow.transition">
30
<field name="act_from" ref="purchase.act_wait_ship"/>
31
<field name="act_to" ref="act_reopen"/>
32
<field name="condition">allow_reopen()</field>
33
<field name="signal">button_reopen</field>
35
<record id="trans_ship_reopen" model="workflow.transition">
36
<field name="act_from" ref="purchase.act_ship"/>
37
<field name="act_to" ref="act_reopen"/>
38
<field name="condition">allow_reopen()</field>
39
<field name="signal">button_reopen</field>
43
<record id="trans_draft_process" model="workflow.transition">
44
<field name="act_from" ref="act_reopen"/>
45
<field name="act_to" ref="purchase.act_router"/>
46
<field name="signal">order_confirm</field>
48
<record id="trans_draft_cancel" model="workflow.transition">
49
<field name="act_from" ref="act_reopen"/>
50
<field name="act_to" ref="purchase.act_cancel"/>
51
<field name="signal">cancel</field>