~vauxoo/openerp-venezuela-localization/sprint_global_javi

« back to all changes in this revision

Viewing changes to l10n_ve_withholding_islr/view/product_view.xml

  • Committer: Javier Duran
  • Author(s): javier at vauxoo
  • Date: 2012-04-02 22:47:30 UTC
  • Revision ID: javier@squezee-vir-20120402224730-77ux8kpv2sujxb11
[ADD] Se agrega metodo onchange en la vista al campo type del producto, en el modulo l10n_ve_withholding_islr

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
        </record>
22
22
 
23
23
 
24
 
        
 
24
    <!--
 
25
    =====================================================
 
26
    Products Extension
 
27
    =====================================================
 
28
    -->
 
29
 
 
30
        <record id="product_normal_form_view_type" model="ir.ui.view">
 
31
            <field name="name">product.normal.form.type</field>
 
32
            <field name="model">product.product</field>
 
33
            <field name="type">form</field>
 
34
            <field name="inherit_id" ref="product.product_normal_form_view"/>
 
35
            <field name="arch" type="xml">
 
36
                <xpath expr="/form/notebook/page/group/field[@name='type']" position="replace">
 
37
                    <field name="type" on_change="onchange_product_type(type)"/>
 
38
                </xpath>
 
39
            </field>
 
40
        </record>
 
41
 
 
42
 
 
43
        <record id="product_template_form_view_type" model="ir.ui.view">
 
44
            <field name="name">product.template.product.form.type</field>
 
45
            <field name="model">product.template</field>
 
46
            <field name="type">form</field>
 
47
            <field name="inherit_id" ref="product.product_template_form_view"/>
 
48
            <field name="arch" type="xml">
 
49
                <xpath expr="/form/notebook/page/group/field[@name='type']" position="replace">
 
50
                    <field name="type" on_change="onchange_product_type(type)"/>
 
51
                </xpath>
 
52
            </field>
 
53
        </record>
25
54
    </data>
26
55
</openerp>