rename the tag <terp/> by <openerp/>
[odoo/odoo.git] / addons / crm_configuration / crm_report_view.xml
1 <?xml version="1.0"?>
2 <openerp>
3 <data>
4         #
5         # Cases by section and category2 of case
6         #
7
8         <record model="ir.ui.view" id="view_crm_case_section_categ_tree">
9                 <field name="name">CRM Report - Sections and Category2(Tree)</field>
10                 <field name="model">report.crm.case.section.categ2</field>
11                 <field name="type">tree</field>
12                 <field name="arch" type="xml">
13                         <tree string="Cases by Section and Category2">
14                                 <field name="name"/>
15                                 <field name="user_id"/>
16                                 <field name="section_id"/>
17                                 <field name="category2_id"/>
18                                 <field name="stage_id"/>
19                                 <field name="nbr"/>
20                                 <field name="delay_close"/>
21                                 <field name="state"/>
22                                 
23                         </tree>
24                 </field>
25         </record>
26         <record model="ir.ui.view" id="view_crm_case_section_categ_form">
27                 <field name="name">CRM Report - Sections and Category2(Form)</field>
28                 <field name="model">report.crm.case.section.categ2</field>
29                 <field name="type">form</field>
30                 <field name="arch" type="xml">
31                         <form string="Cases by Section and Category2">
32                                 <field name="name"/>
33                                 <field name="user_id"/>
34                                 <field name="section_id" select="1"/>
35                                 <field name="category2_id" select="1"/>
36                                 <field name="stage_id"/>
37                                 <field name="nbr" select="1"/>
38                                 <field name="state" select="1"/>
39                                 <field name="delay_close"/>
40                         </form>
41                 </field>
42         </record>
43         <record model="ir.ui.view" id="view_crm_case_section_categ_graph">
44                 <field name="name">CRM Report - Sections and Category2(Graph)</field>
45                 <field name="model">report.crm.case.section.categ2</field>
46                 <field name="type">graph</field>
47                 <field name="arch" type="xml">
48                         <graph string="Cases by Section and Category2" type="bar" orientation="horizontal">
49                                 <field name="category2_id"/>
50                                 <field name="nbr" operator="+"/>
51                                 <field name="section_id" group="True"/>
52                         </graph>
53                 </field>
54         </record>
55
56         <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_tree_month">
57                 <field name="res_model">report.crm.case.section.categ2</field>
58                 <field name="view_type">form</field>
59                 <field name="view_mode">graph,tree</field>
60                 <field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
61         </record>
62         <menuitem parent="report_crm.next_id_65" name="Cases by Section and Category2" action="action_report_crm_case_section_categ_tree_month" id="menu_crm_case_section_categ_tree_month"/>
63
64         <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_tree">
65                 <field name="res_model">report.crm.case.section.categ2</field>
66                 <field name="view_type">form</field>
67                 <field name="view_mode">graph,tree</field>
68         </record>
69         <menuitem parent="report_crm.next_id_66" name="Cases by Section and Category2" action="action_report_crm_case_section_categ_tree" id="menu_crm_case_section_categ_tree"/>
70
71         #
72         # Cases by section and stage
73         #
74
75         <record model="ir.ui.view" id="view_crm_case_section_stage_tree">
76                 <field name="name">CRM Report - Sections and Stage(Tree)</field>
77                 <field name="model">report.crm.case.section.stage</field>
78                 <field name="type">tree</field>
79                 <field name="arch" type="xml">
80                         <tree string="Cases by Section and Stage">
81                                 <field name="name"/>
82                                 <field name="user_id"/>
83                                 <field name="section_id"/>
84                                 <field name="stage_id"/>
85                                 <field name="nbr"/>
86                                 <field name="delay_close"/>
87                                 <field name="state"/>
88                         </tree>
89                 </field>
90         </record>
91         <record model="ir.ui.view" id="view_crm_case_section_stage_form">
92                 <field name="name">CRM Report - Sections and Stage(Form)</field>
93                 <field name="model">report.crm.case.section.stage</field>
94                 <field name="type">form</field>
95                 <field name="arch" type="xml">
96                         <form string="Cases by Section and Stage">
97                                 <field name="name"/>
98                                 <field name="user_id"/>
99                                 <field name="section_id" select="1"/>
100                                 <field name="stage_id"/>
101                                 <field name="nbr" select="1"/>
102                                 <field name="state" select="1"/>
103                                 <field name="delay_close"/>
104                         </form>
105                 </field>
106         </record>
107         <record model="ir.ui.view" id="view_crm_case_section_stage_graph">
108                 <field name="name">CRM Report - Sections and Stage(Graph)</field>
109                 <field name="model">report.crm.case.section.stage</field>
110                 <field name="type">graph</field>
111                 <field name="arch" type="xml">
112                         <graph string="Cases by Section and Stage" type="bar" orientation="horizontal">
113                                 <field name="stage_id"/>
114                                 <field name="nbr" operator="+"/>
115                                 <field name="section_id" group="True"/>
116                         </graph>
117                 </field>
118         </record>
119
120         <record model="ir.actions.act_window" id="action_report_crm_case_section_stage_tree_month">
121                 <field name="res_model">report.crm.case.section.stage</field>
122                 <field name="view_type">form</field>
123                 <field name="view_mode">graph,tree</field>
124                 <field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
125         </record>
126         <menuitem parent="report_crm.next_id_65" name="Cases by Section and Stage" action="action_report_crm_case_section_stage_tree_month" id="menu_crm_case_section_stage_tree_month"/>
127         <record model="ir.actions.act_window" id="action_report_crm_case_section_stage_tree">
128                 <field name="res_model">report.crm.case.section.stage</field>
129                 <field name="view_type">form</field>
130                 <field name="view_mode">graph,tree</field>
131         </record>
132         <menuitem parent="report_crm.next_id_66" name="Cases by Section and Stage" action="action_report_crm_case_section_stage_tree" id="menu_crm_case_section_stage_tree"/>
133
134         #
135         # Cases by section, category and stage
136         #
137
138         <record model="ir.ui.view" id="view_crm_case_section_categ_stage_tree">
139                 <field name="name">CRM Report - Section, Category and Stage(Tree)</field>
140                 <field name="model">report.crm.case.section.categ.stage</field>
141                 <field name="type">tree</field>
142                 <field name="arch" type="xml">
143                         <tree string="Cases by Section, Category and Stage">
144                                 <field name="name"/>
145                                 <field name="user_id"/>
146                                 <field name="section_id"/>
147                                 <field name="categ_id"/>
148                                 <field name="stage_id"/>
149                                 <field name="nbr"/>
150                                 <field name="delay_close"/>
151                                 <field name="state"/>
152                         </tree>
153                 </field>
154         </record>
155         <record model="ir.ui.view" id="view_crm_case_section_categ_stage_form">
156                 <field name="name">CRM Report - Section, Category and Stage(Form)</field>
157                 <field name="model">report.crm.case.section.categ.stage</field>
158                 <field name="type">form</field>
159                 <field name="arch" type="xml">
160                         <form string="Cases by Section, Category and Stage">
161                                 <field name="name"/>
162                                 <field name="user_id"/>
163                                 <field name="section_id" select="1"/>
164                                 <field name="categ_id"/>
165                                 <field name="stage_id"/>
166                                 <field name="nbr" select="1"/>
167                                 <field name="state" select="1"/>
168                                 <field name="delay_close"/>
169                         </form>
170                 </field>
171         </record>
172
173         <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_stage_tree_month">
174                 <field name="res_model">report.crm.case.section.categ.stage</field>
175                 <field name="view_type">form</field>
176                 <field name="view_mode">tree</field>
177                 <field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
178         </record>
179         <menuitem parent="report_crm.next_id_65" name="Cases by Section, Category and Stage" action="action_report_crm_case_section_categ_stage_tree_month" id="menu_crm_case_section_categ_stage_tree_month"/>
180         <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_stage_tree">
181                 <field name="res_model">report.crm.case.section.categ.stage</field>
182                 <field name="view_type">form</field>
183                 <field name="view_mode">tree</field>
184         </record>
185         <menuitem parent="report_crm.next_id_66" name="Cases by Section, Category and Stage" action="action_report_crm_case_section_categ_stage_tree" id="menu_crm_case_section_categ_stage_tree"/>
186
187         #
188         # Cases by section, category and category2
189         #
190
191         <record model="ir.ui.view" id="view_crm_case_section_categ_categ2_tree">
192                 <field name="name">CRM Report - Section, Category and Category2(Tree)</field>
193                 <field name="model">report.crm.case.section.categ.categ2</field>
194                 <field name="type">tree</field>
195                 <field name="arch" type="xml">
196                         <tree string="Cases by Section, Category and Category2">
197                                 <field name="name"/>
198                                 <field name="user_id"/>
199                                 <field name="section_id"/>
200                                 <field name="categ_id"/>
201                                 <field name="category2_id"/>
202                                 <field name="stage_id"/>
203                                 <field name="nbr"/>
204                                 <field name="delay_close"/>
205                                 <field name="state"/>
206                         </tree>
207                 </field>
208         </record>
209         <record model="ir.ui.view" id="view_crm_case_section_categ_categ2_form">
210                 <field name="name">CRM Report - Section, Category and Category2(Form)</field>
211                 <field name="model">report.crm.case.section.categ.categ2</field>
212                 <field name="type">form</field>
213                 <field name="arch" type="xml">
214                         <form string="Cases by Section, Category and Category2">
215                                 <field name="name"/>
216                                 <field name="user_id"/>
217                                 <field name="section_id" select="1"/>
218                                 <field name="categ_id"/>
219                                 <field name="category2_id"/>
220                                 <field name="stage_id"/>
221                                 <field name="nbr" select="1"/>
222                                 <field name="state" select="1"/>
223                                 <field name="delay_close"/>
224                         </form>
225                 </field>
226         </record>
227
228         <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_categ2_tree_month">
229                 <field name="res_model">report.crm.case.section.categ.categ2</field>
230                 <field name="view_type">form</field>
231                 <field name="view_mode">tree</field>
232                 <field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
233         </record>
234         <menuitem  parent="report_crm.next_id_65" name="Cases by Section, Category and Category2" action="action_report_crm_case_section_categ_categ2_tree_month" id="menu_crm_case_section_categ_categ2_tree_month"/>
235         <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_categ2_tree">
236                 <field name="res_model">report.crm.case.section.categ.categ2</field>
237                 <field name="view_type">form</field>
238                 <field name="view_mode">tree</field>
239         </record>
240         <menuitem parent="report_crm.next_id_66" name="Cases by Section, Category and Category2" action="action_report_crm_case_section_categ_categ2_tree" id="menu_crm_case_section_categ_categ2_tree"/>
241 </data>
242 </openerp>