~sergio-incaser/openerp-spain/openerp-spain

« back to all changes in this revision

Viewing changes to extra_addons/account_balance_reporting/account_balance_report_workflow.xml

  • Committer: Jordi Esteve
  • Date: 2009-12-14 17:53:50 UTC
  • mfrom: (81.1.90 lp-openerp-spain-5.0)
  • Revision ID: jesteve@zikzakmedia.com-20091214175350-6vzzt3avtsof25a2
Recuperación del estado actual del repositorio de localización española de OpenERP: Aplicación de todos los merges pendientes desde la versión 81 (15-11-2008) hasta la actual (02-12-2009)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!--
 
3
#
 
4
#    OpenERP - Account balance reporting engine
 
5
#    Copyright (C) 2009 Pexego Sistemas Informáticos. All Rights Reserved
 
6
#    $Id$
 
7
#
 
8
#    This program is free software: you can redistribute it and/or modify
 
9
#    it under the terms of the GNU General Public License as published by
 
10
#    the Free Software Foundation, either version 3 of the License, or
 
11
#    (at your option) any later version.
 
12
#
 
13
#    This program is distributed in the hope that it will be useful,
 
14
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
#    GNU General Public License for more details.
 
17
#
 
18
#    You should have received a copy of the GNU General Public License
 
19
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
#
 
21
-->
 
22
<!--
 
23
Account balance report workflow.
 
24
 
 
25
Author: Borja López Soilán (Pexego) - borjals@pexego.es
 
26
-->
 
27
<openerp>
 
28
    <data>
 
29
        <!-- *** Nodes ***************************************************** -->
 
30
 
 
31
        <record model="workflow" id="wkf_account_balance_report">
 
32
            <field name="name">Account balance report workflow</field>
 
33
            <field name="osv">account.balance.report</field>
 
34
            <field name="on_create">True</field>
 
35
        </record>
 
36
 
 
37
 
 
38
        <record model="workflow.activity" id="act_draft">
 
39
            <field name="wkf_id" ref="wkf_account_balance_report"/>
 
40
            <field name="flow_start">True</field>
 
41
            <field name="name">draft</field>
 
42
        </record>
 
43
 
 
44
        <record model="workflow.activity" id="act_calculate">
 
45
            <field name="wkf_id" ref="wkf_account_balance_report"/>
 
46
            <field name="name">calculated</field>
 
47
            <field name="action">action_calculate()</field>
 
48
            <field name="kind">function</field>
 
49
        </record>
 
50
 
 
51
        <record model="workflow.activity" id="act_confirm">
 
52
            <field name="wkf_id" ref="wkf_account_balance_report"/>
 
53
            <field name="name">confirmed</field>
 
54
            <field name="action">action_confirm()</field>
 
55
            <field name="kind">function</field>
 
56
        </record>
 
57
 
 
58
        <record model="workflow.activity" id="act_cancel">
 
59
            <field name="wkf_id" ref="wkf_account_balance_report"/>
 
60
            <field name="name">canceled</field>
 
61
            <field name="flow_stop">True</field>
 
62
            <field name="action">action_cancel()</field>
 
63
            <field name="kind">function</field>
 
64
        </record>
 
65
 
 
66
 
 
67
        <!-- *** Transitions *********************************************** -->
 
68
                
 
69
        <record model="workflow.transition" id="trans_draft_calculate">
 
70
            <field name="act_from" ref="act_draft"/>
 
71
            <field name="act_to" ref="act_calculate"/>
 
72
            <field name="signal">calculate</field>
 
73
        </record>
 
74
 
 
75
        <record model="workflow.transition" id="trans_calculate_confirm">
 
76
            <field name="act_from" ref="act_calculate"/>
 
77
            <field name="act_to" ref="act_confirm"/>
 
78
            <field name="signal">confirm</field>
 
79
        </record>
 
80
 
 
81
        <record model="workflow.transition" id="trans_calculate_draft">
 
82
            <field name="act_from" ref="act_calculate"/>
 
83
            <field name="act_to" ref="act_cancel"/>
 
84
            <field name="signal">cancel</field>
 
85
        </record>
 
86
 
 
87
        <record model="workflow.transition" id="trans_confirm_cancel">
 
88
            <field name="act_from" ref="act_confirm"/>
 
89
            <field name="act_to" ref="act_cancel"/>
 
90
            <field name="signal">cancel</field>
 
91
        </record>
 
92
 
 
93
    </data>
 
94
</openerp>