~camptocamp/c2c-rd-addons/7.0

« back to all changes in this revision

Viewing changes to purchase_order_reopen/purchase_workflow.xml

  • Committer: ferdinand
  • Date: 2012-04-14 21:32:51 UTC
  • Revision ID: office@chricar.at-20120414213251-0dm83jo7styhdqjn
[ADD] purchase reopen  

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="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>
 
12
        </record>
 
13
 
 
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()
 
18
            </field>
 
19
            <field name="kind">function</field>
 
20
        </record>
 
21
        
 
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>
 
27
    </record>
 
28
    <!--
 
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>
 
34
        </record>
 
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>
 
40
        </record>
 
41
-->
 
42
 
 
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>
 
47
        </record>
 
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>
 
52
        </record>
 
53
 
 
54
 
 
55
    </data>
 
56
</openerp>