1
1
<?xml version="1.0" encoding="utf-8"?>
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
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')]}"/>
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')]}"/>