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

« back to all changes in this revision

Viewing changes to sale_override/sale_workflow.xml

  • Committer: chloups208
  • Date: 2011-08-23 06:36:05 UTC
  • mto: This revision was merged to the branch mainline in revision 253.
  • Revision ID: chloups208@chloups208-laptop-20110823063605-g92qqcpmnnb74iok
[UF-368]first commit

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_sale_loan" model="workflow.activity">
6
 
            <field name="wkf_id" ref="sale.wkf_sale"/>
7
 
            <field name="name">loan</field>
8
 
            <field name="kind">subflow</field>
9
 
            <field name="subflow_id" search="[('osv','=','purchase.order')]" type="int"/>
10
 
            <field name="action">action_purchase_order_create()</field>
11
 
        </record>
12
 
        <record id="act_sale_loan_done" model="workflow.activity">
13
 
            <field name="wkf_id" ref="sale.wkf_sale" />
14
 
            <field name="name">loan_done</field>
15
 
        </record>
16
 
        
17
 
        <record id="trans_sale_router_loan" model="workflow.transition">
18
 
            <field name="act_from" ref="sale.act_router" />
19
 
            <field name="act_to" ref="act_sale_loan" />
20
 
            <field name="condition">order_type=='loan' and not loan_id</field>
21
 
        </record>
22
 
        <record id="trans_sale_router_loan_done" model="workflow.transition">
23
 
            <field name="act_from" ref="sale.act_router" />
24
 
            <field name="act_to" ref="act_sale_loan_done" />
25
 
            <field name="condition">order_type!='loan' or loan_id</field>
26
 
        </record>
27
 
        <record id="trans_sale_loan_done" model="workflow.transition">
28
 
            <field name="act_from" ref="act_sale_loan"/>
29
 
            <field name="act_to" ref="act_sale_loan_done"/>
30
 
            <field name="signal">subflow.done</field>
31
 
        </record>
32
 
        <record id="trans_sale_loand_done_end" model="workflow.transition">
33
 
            <field name="act_from" ref="act_sale_loan_done" />
34
 
            <field name="act_to" ref="sale.act_done" />
35
 
        </record>
36
 
        <record id="sale.trans_router_wait_invoice_shipping" model="workflow.transition">
37
 
            <field name="act_from" ref="sale.act_wait_invoice"/>
38
 
            <field name="act_to" ref="sale.act_invoice_end"/>
39
 
            <field name="condition">(order_policy=='picking') or order_type!='regular' or (order_type=='regular' and partner_id.partner_type=='internal')</field>
40
 
        </record>
41
 
    
42
 
    </data>
43
 
</openerp>
 
 
b'\\ No newline at end of file'