~eduardo-bayardo-bias/openobject-addons/addons_interface

« back to all changes in this revision

Viewing changes to partner_credit_limit/sale_workflow.xml

  • Committer: Eduardo Bayardo
  • Date: 2017-08-15 21:49:35 UTC
  • Revision ID: eduardo.bayardo@bias.com.mx-20170815214935-94uhog6hvq6em5mj
set correct date at sale order validation (sock.move, stock.picking)... Create Invoice defaults from pickings

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
        <!-- Activity -->
 
5
 
 
6
 
 
7
        <record id="act_pre_approve" model="workflow.activity">
 
8
            <field name="wkf_id" ref="sale.wkf_sale"/>
 
9
            <field name="name">pre_approve</field>
 
10
            <field name="kind">function</field>
 
11
            <field name="action">write({'state':'pre_approve'})</field>
 
12
        </record>
 
13
 
 
14
 
 
15
        <!-- Transistion -->
 
16
 
 
17
        <record id="sale.trans_draft_router" model="workflow.transition">
 
18
            <field name="act_from" ref="sale.act_draft"/>
 
19
            <field name="act_to" ref="act_pre_approve"/>
 
20
            <field name="signal">order_pre_approve</field>
 
21
            <field name="condition">check_limit()</field>
 
22
        </record>
 
23
        <record id="trans_pre_approve_cancel" model="workflow.transition">
 
24
            <field name="act_from" ref="act_pre_approve"/>
 
25
            <field name="act_to" ref="sale.act_cancel"/>
 
26
            <field name="signal">cancel</field>
 
27
        </record>
 
28
        <record id="trans_pre_approve_router" model="workflow.transition">
 
29
            <field name="act_from" ref="act_pre_approve"/>
 
30
            <field name="act_to" ref="sale.act_router"/>
 
31
            <field name="signal">order_confirm</field>
 
32
            <field name="condition">check_limit()</field>
 
33
        </record>
 
34
 
 
35
 
 
36
    </data>
 
37
</openerp>