[FIX] sent mail, quote template controller name
[odoo/odoo.git] / addons / report_intrastat / report_intrastat_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <!-- Country -->
5         <record id="view_country_tree" model="ir.ui.view">
6             <field name="name">res.country.tree</field>
7             <field name="model">res.country</field>
8             <field name="inherit_id" ref="base.view_country_tree"/>
9             <field name="arch" type="xml">
10                 <field name="code" position="after">
11                     <field name="intrastat"/>
12                 </field>
13             </field>
14         </record>
15
16         <record id="view_country_form" model="ir.ui.view">
17             <field name="name">res.country.form</field>
18             <field name="model">res.country</field>
19             <field name="inherit_id" ref="base.view_country_form"/>
20             <field name="arch" type="xml">
21                 <field name="code" position="after">
22                     <field name="intrastat"/>
23                 </field>
24             </field>
25         </record>
26
27         <!-- Product -->
28         <record id="product_normal_form_view" model="ir.ui.view">
29             <field name="name">product.normal.form</field>
30             <field name="model">product.product</field>
31             <field name="inherit_id" ref="product.product_normal_form_view"/>
32             <field name="arch" type="xml">
33                 <field name="product_manager" position="after">
34                     <field name="intrastat_id"
35                         attrs="{'readonly': [('is_only_child', '=', False)]}"/>
36                 </field>
37             </field>
38         </record>
39
40         <!-- Intrastat code -->
41         <record id="view_report_intrastat_code_tree" model="ir.ui.view">
42             <field name="name">report.intrastat.code.tree</field>
43             <field name="model">report.intrastat.code</field>
44             <field name="arch" type="xml">
45                 <tree string="Intrastat code">
46                     <field name="name"/>
47                     <field name="description"/>
48                 </tree>
49             </field>
50         </record>
51         <record id="view_report_intrastat_code_form" model="ir.ui.view">
52             <field name="name">report.intrastat.code.form</field>
53             <field name="model">report.intrastat.code</field>
54             <field name="arch" type="xml">
55                 <form string="Intrastat Code" version="7.0">
56                     <group>
57                         <field name="name"/>
58                         <field name="description"/>
59                     </group>
60                 </form>
61             </field>
62         </record>
63         <record id="action_report_intrastat_code_tree" model="ir.actions.act_window">
64             <field name="name">Intrastat Code</field>
65             <field name="type">ir.actions.act_window</field>
66             <field name="res_model">report.intrastat.code</field>
67             <field name="view_type">form</field>
68             <field name="view_mode">tree,form</field>
69         </record>
70
71         <menuitem action="action_report_intrastat_code_tree" id="menu_report_intrastat_code" 
72                 parent="base.menu_config_address_book" sequence="2" groups="base.group_no_one"/>
73
74
75         <record id="view_report_intrastat_tree" model="ir.ui.view">
76             <field name="name">report.intrastat.view</field>
77             <field name="model">report.intrastat</field>
78             <field name="arch" type="xml">
79                 <tree string="Intrastat Data" create="false">
80                     <field name="name" />
81                     <field name="month"/>
82                     <field name="code"/>
83                     <field name="ref"/>
84                     <field name="intrastat_id"/>
85                     <field name="weight"/>
86                     <field name="value"/>
87                     <field name="supply_units"/>
88                     <field name="currency_id" groups="base.group_multi_currency"/>
89                     <field name="type"/>
90                 </tree>
91             </field>
92         </record>
93
94         <record id="view_report_intrastat_search" model="ir.ui.view">
95             <field name="name">report.intrastat.search</field>
96             <field name="model">report.intrastat</field>
97             <field name="arch" type="xml">
98                 <search string="Intrastat Data">
99                     <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Intrastat Data"/>
100                     <field name="month"/>
101                     <field name="type"/>
102                     <field name="intrastat_id"/>
103                 </search>
104             </field>
105         </record>
106
107         <record id="action_report_intrastat_tree_all" model="ir.actions.act_window">
108             <field name="name">Intrastat</field>
109             <field name="type">ir.actions.act_window</field>
110             <field name="res_model">report.intrastat</field>
111             <field name="view_type">form</field>
112             <field name="view_mode">tree</field>
113             <field name="search_view_id" ref="view_report_intrastat_search"/>
114         </record>
115
116         <menuitem action="action_report_intrastat_tree_all" id="menu_report_intrastat_all" 
117                 parent="stock.next_id_61" sequence="6"/>
118     </data>
119 </openerp>