~vauxoo/addons-vauxoo/7.0-user_story-rev4-kty

« back to all changes in this revision

Viewing changes to baremo/view/baremo_view.xml

  • Committer: Miguel Delgado
  • Author(s): Vauxoo
  • Date: 2012-03-08 15:56:52 UTC
  • mto: (134.1.16 addons-vauxoo)
  • mto: This revision was merged to the branch mainline in revision 139.
  • Revision ID: miguel.delgado07@gmail.com-20120308155652-j4hgvzmuvxscaaty

[ADD] modulos referentes a las comisiones 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<openerp>
 
3
    <data>
 
4
    <menuitem
 
5
        id="commission" 
 
6
        name="Commission Settings" 
 
7
        parent="base.menu_base_config" 
 
8
        groups="base.group_system"
 
9
        sequence="10"
 
10
        />
 
11
 
 
12
    <record model="ir.ui.view" id="view_baremo_book_form">
 
13
        <field name="name">baremo.book.form</field>
 
14
        <field name="model">baremo.book</field>
 
15
        <field name="type">form</field>
 
16
        <field name="arch" type="xml">
 
17
            <form string="Baremes">
 
18
                <field name="name" colspan='6' nolabel="1"/>
 
19
                <field name="bar_ids" nolabel="1" colspan='6'/>
 
20
                <separator string="Notes"/>
 
21
                <field name='notes' colspan='6' nolabel="1"/>
 
22
            </form>
 
23
        </field>
 
24
    </record>
 
25
    <record model="ir.ui.view" id="view_baremo_book_tree">
 
26
        <field name="name">baremo.book.tree</field>
 
27
        <field name="model">baremo.book</field>
 
28
        <field name="type">tree</field>
 
29
        <field name="arch" type="xml">
 
30
            <tree string="Baremes">
 
31
                <field name="name" />
 
32
            </tree>
 
33
        </field>
 
34
    </record>
 
35
<!--
 
36
    <record model="ir.actions.act_window" id="commision_baremo_act">
 
37
        <field name="name">Baremes</field>
 
38
        <field name="res_model">baremo.book</field>
 
39
        <field name="view_type">form</field>
 
40
        <field name="view_mode">tree,form</field>
 
41
    </record>
 
42
-->
 
43
        <record model="ir.actions.act_window" id="commision_baremo_act">
 
44
            <field name="name">Baremes</field>
 
45
            <field name="res_model">baremo.book</field>
 
46
            <field name="type">ir.actions.act_window</field>
 
47
            <field name="view_type">form</field>
 
48
            <field name="view_mode">tree,form,calendar,graph</field>
 
49
        </record>
 
50
        <record model="ir.actions.act_window.view" id="action_baremo_book_tree">
 
51
            <field name="sequence" eval="10"/>
 
52
            <field name="view_mode">tree</field>
 
53
            <field name="view_id" ref="view_baremo_book_tree"/> 
 
54
            <field name="act_window_id" ref="commision_baremo_act"/>
 
55
        </record>
 
56
        <record model="ir.actions.act_window.view" id="action_baremo_book_form">
 
57
            <field name="sequence" eval="20"/>
 
58
            <field name="view_mode">form</field>
 
59
            <field name="view_id" ref="view_baremo_book_form"/>
 
60
            <field name="act_window_id" ref="commision_baremo_act"/>
 
61
        </record>
 
62
    
 
63
    
 
64
    <menuitem 
 
65
    name="Baremes"
 
66
    parent="commission" 
 
67
    id="menu_baremes_tree"
 
68
    action="commision_baremo_act"
 
69
    groups="base.group_sale_manager"/>
 
70
    
 
71
    
 
72
    <record model="ir.ui.view" id="view_baremo_form">
 
73
        <field name="name">baremo.span.form</field>
 
74
        <field name="model">baremo.span</field>
 
75
        <field name="type">form</field>
 
76
        <field name="arch" type="xml">
 
77
            <form string="Commission Days &amp; Discounts">
 
78
                <field name="name" colspan="2"/>
 
79
                <field name="number" colspan="2"/>
 
80
                <field name="rate_ids" nolabel='1' colspan='6'>
 
81
                    <tree string="Commission by Discount">
 
82
                        <field name="name"/>
 
83
                        <field name="porc_rate"/>
 
84
                        <field name="porc_com"/>
 
85
                    </tree>
 
86
                </field>
 
87
            </form>
 
88
        </field>
 
89
    </record>
 
90
    
 
91
    <record model="ir.ui.view" id="view_baremo_tree">
 
92
        <field name="name">baremo.span.tree</field>
 
93
        <field name="model">baremo.span</field>
 
94
        <field name="type">tree</field>
 
95
        <field name="arch" type="xml">
 
96
            <tree  string="Commission Days &amp; Discounts">
 
97
                <field name="name"/>
 
98
                <field name="number"/>
 
99
                <field name="rate_ids"/>
 
100
            </tree>
 
101
        </field>
 
102
    </record>
 
103
    
 
104
    <record model="ir.ui.view" id="view_baremo_discount_form">
 
105
        <field name="name">baremo.rate.tree</field>
 
106
        <field name="model">baremo.rate</field>
 
107
        <field name="type">form</field>
 
108
        <field name="arch" type="xml">
 
109
            <form string="Commission by Discount">
 
110
                <group col="6">
 
111
                    <field name="name"/>
 
112
                    <field name="porc_rate"/>
 
113
                    <field name="porc_com"/>
 
114
                </group>
 
115
            </form>
 
116
        </field>
 
117
    </record>
 
118
    
 
119
    </data>
 
120
</openerp>