~vauxoo/addons-vauxoo/gbw-report-CFDI-3.2-dev-yzk

« back to all changes in this revision

Viewing changes to cotizacion_gbw/product_pricelist_view.xml

  • Committer: Isaac Lopez
  • Date: 2012-06-07 01:29:08 UTC
  • mfrom: (31.1.11 gbw6+julio_split)
  • Revision ID: isaac@vauxoo.com-20120607012908-mpfo2qjxfu6qpxmj
[MERGE] cotizacion_gbw divided in several modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0"?>
2
 
 
3
 
<openerp>
4
 
<data>
5
 
 
6
 
    <record id="base.group_pricelist_date" model="res.groups">
7
 
        <field name="name">pricelist date</field>
8
 
    </record>
9
 
 
10
 
 
11
 
        <record model="ir.ui.view" id="view_product_pricelist_version_inherit1">
12
 
            <field name="name">view.product.pricelist.version.inherit1</field>
13
 
            <field name="model">product.pricelist</field>
14
 
            <field name="inherit_id" ref="product.product_pricelist_view" />
15
 
            <field name="type">form</field>
16
 
            <field name="arch" type="xml">
17
 
                    <xpath expr="/form/field[@name='version_id']/tree/field[@name='date_start']" position="replace">
18
 
                        <field groups="base.group_pricelist_date" name="date_start"/>
19
 
                    </xpath>
20
 
                    <xpath expr="/form/field[@name='version_id']/form/field[@name='date_start']" position="replace">
21
 
                        <field groups="base.group_pricelist_date" name="date_start"/>
22
 
                    </xpath>
23
 
                    <xpath expr="/form/field[@name='version_id']/tree/field[@name='date_end']" position="replace">
24
 
                        <field groups="base.group_pricelist_date" name="date_end"/>
25
 
                    </xpath>
26
 
                    <xpath expr="/form/field[@name='version_id']/form/field[@name='date_end']" position="replace">
27
 
                        <field groups="base.group_pricelist_date" name="date_end"/>
28
 
                    </xpath>
29
 
            </field>
30
 
        </record>
31
 
 
32
 
        <record model="ir.ui.view" id="view_product_pricelist_inherit1">
33
 
            <field name="name">view.product.pricelist.inherit1</field>
34
 
            <field name="model">product.pricelist.item</field>
35
 
            <field name="inherit_id" ref="product.product_pricelist_item_form_view" />
36
 
            <field name="type">form</field>
37
 
            <field name="arch" type="xml">
38
 
                <form string="Products Listprices Items" position="replace">
39
 
                        <form string="Products Listprices Items">
40
 
                            <separator colspan="4" string="Rules Test Match"/>
41
 
                            <field colspan="4" name="name" select="1"/>
42
 
                            <field name="product_id" on_change="product_id_change(product_id)" select="1"/>
43
 
                            <field name="packaging_id" on_change="product_id_change(product_id)" select="1"/>
44
 
                            <field name="product_tmpl_id" select="1"/>
45
 
                            <field name="categ_id" select="1" groups="base.group_pricelist_date"/>
46
 
                            <field name="company_id" groups="base.group_multi_company" widget="selection"/>
47
 
                            <newline/>
48
 
                            <field name="min_quantity" groups="base.group_pricelist_date"/>
49
 
                            <field name="sequence" groups="base.group_pricelist_date"/>
50
 
                            <field name="date"/>
51
 
                            <field name="price_cot" on_change="onchange_price_cot(price_cot)"/>
52
 
 
53
 
                            <group colspan="4" groups="base.group_pricelist_date">
54
 
                                 <separator string="Price Computation"/>
55
 
                            </group>
56
 
 
57
 
                            <field name="base" groups="base.group_pricelist_date"/>
58
 
                            <field name="base_pricelist_id" attrs="{'required': [('base','=', -1)], 'readonly': [('base','!=', -1)]}" groups="base.group_pricelist_date"/>
59
 
                            <group col="6" colspan="5" groups="base.group_pricelist_date">
60
 
                                <label string="New Price ="/>
61
 
                                <label string="Base Price"/>
62
 
                                <label string="* ( 1 + "/>
63
 
                                <field name="price_discount" nolabel="1"/>
64
 
                                <label string=" ) + "/>
65
 
                                <field name="price_surcharge" nolabel="1" />
66
 
                                <newline/>
67
 
                                <field name="price_round" string="Rounding Method"/>
68
 
                                <field name="price_min_margin" string="Min. Margin"/>
69
 
                                <field name="price_max_margin" string="Max. Margin"/>
70
 
                            </group>
71
 
 
72
 
                        </form>
73
 
                </form>
74
 
            </field>
75
 
        </record>
76
 
 
77
 
        <record model="ir.ui.view" id="view_product_pricelist_inherit3">
78
 
            <field name="name">view.product.pricelist.inherit3</field>
79
 
            <field name="model">product.pricelist.item</field>
80
 
            <field name="inherit_id" ref="product.product_pricelist_item_tree_view" />
81
 
            <field name="type">form</field>
82
 
            <field name="arch" type="xml">
83
 
                <tree string="Products Listprices Items" position="replace">
84
 
                        <tree string="Products Listprices Items">
85
 
                            <field name="sequence"/>
86
 
                            <field name="date"/>
87
 
                            <field colspan="4" name="name" select="1"/>
88
 
                            <field name="packaging_id" select="1"/>
89
 
                            <field name="product_tmpl_id" select="1"/>
90
 
                            <field name="categ_id" select="1"/>
91
 
                            <field name="min_quantity" groups="base.group_pricelist_date"/>
92
 
                            <field name="base" groups="base.group_pricelist_date"/>
93
 
                        </tree>
94
 
                </tree>
95
 
            </field>
96
 
        </record>
97
 
 
98
 
        <record model="ir.ui.view" id="view_product_pricelist_inherit2">
99
 
            <field name="name">view.product.pricelist.inherit2</field>
100
 
            <field name="model">product.pricelist</field>
101
 
            <field name="inherit_id" ref="product.product_pricelist_view" />
102
 
            <field name="type">form</field>
103
 
            <field name="arch" type="xml">
104
 
                <field name="version_id" position="after">
105
 
                        <button name="get_price_4date" string="Recalcular" type="object"/>
106
 
                </field>
107
 
            </field>
108
 
        </record>
109
 
 
110
 
    </data>
111
 
</openerp>