~stefan-opener/new-report-intrastat/l10n_at_oeprodcom-8.0

« back to all changes in this revision

Viewing changes to intrastat_base/product_view.xml

  • Committer: Alexis de Lattre
  • Date: 2014-06-23 10:12:40 UTC
  • Revision ID: alexis@via.ecp.fr-20140623101240-n07jvie8h1bovs1q
Port intrastat_base to Odoo 8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
 
3
3
<!--
4
 
    Copyright (C) 2010-2013 Akretion (http://www.akretion.com/)
 
4
    Copyright (C) 2010-2014 Akretion (http://www.akretion.com/)
5
5
    @author Alexis de Lattre <alexis.delattre@akretion.com>
6
6
    The licence is in the file __openerp__.py
7
7
-->
9
9
<openerp>
10
10
<data>
11
11
 
12
 
<!-- Add field on product.product view -->
13
 
<record id="intrastat_base_product_normal_form" model="ir.ui.view">
14
 
    <field name="name">intrastat.base.product.normal.form</field>
15
 
    <field name="model">product.product</field>
16
 
    <field name="inherit_id" ref="account.product_normal_form_view" />
17
 
    <field name="arch" type="xml">
18
 
        <group name="properties" position="after">
19
 
            <group string="Intrastat Properties" name="intrastat">
20
 
                <field name="exclude_from_intrastat" />
21
 
                <field name="is_accessory_cost"
22
 
                    attrs="{'invisible': [('type', '!=', 'service')]}"/>
23
 
            </group>
24
 
        </group>
25
 
    </field>
26
 
</record>
27
 
 
28
 
<!-- Same on product.template view -->
29
12
<record id="intrastat_base_product_template_form" model="ir.ui.view">
30
13
    <field name="name">intrastat.base.product.template.form</field>
31
14
    <field name="model">product.template</field>
32
15
    <field name="inherit_id" ref="account.product_template_form_view"/>
33
16
    <field name="arch" type="xml">
34
 
        <field name="supplier_taxes_id" position="after">
 
17
        <group name="properties" position="after">
35
18
            <group string="Intrastat Properties" name="intrastat">
36
19
                <field name="exclude_from_intrastat" />
37
20
                <field name="is_accessory_cost"
38
21
                    attrs="{'invisible': [('type', '!=', 'service')]}"/>
39
22
            </group>
40
 
        </field>
 
23
        </group>
41
24
    </field>
42
25
</record>
43
26