5 <!-- Cases by section and category2 of case Tree View -->
7 <record model="ir.ui.view" id="view_crm_case_section_categ_tree">
8 <field name="name">CRM Report - Sections and Type(Tree)</field>
9 <field name="model">report.crm.case.section.categ2</field>
10 <field name="type">tree</field>
11 <field name="arch" type="xml">
12 <tree string="Cases by Section and Type">
15 <field name="user_id"/>
16 <field name="section_id"/>
17 <field name="category2_id"/>
18 <field name="stage_id"/>
19 <field name="amount_revenue"/>
21 <field name="delay_close"/>
27 <!-- Cases by section and category2 of case Form View -->
29 <record model="ir.ui.view" id="view_crm_case_section_categ_form">
30 <field name="name">CRM Report - Sections and Type(Form)</field>
31 <field name="model">report.crm.case.section.categ2</field>
32 <field name="type">form</field>
33 <field name="arch" type="xml">
34 <form string="Cases by Section and Category2">
37 <field name="user_id"/>
38 <field name="section_id" select="1" widget="selection"/>
39 <field name="category2_id" select="1"/>
40 <field name="stage_id"/>
41 <field name="amount_revenue"/>
42 <field name="nbr" select="1"/>
43 <field name="state" select="1"/>
44 <field name="delay_close"/>
49 <!-- Cases by section and category2 of case Graph View -->
51 <record model="ir.ui.view" id="view_crm_case_section_categ_graph">
52 <field name="name">CRM Report - Sections and Type(Graph)</field>
53 <field name="model">report.crm.case.section.categ2</field>
54 <field name="type">graph</field>
55 <field name="arch" type="xml">
56 <graph string="Cases by Section and Type" type="bar" orientation="horizontal">
57 <field name="category2_id"/>
58 <field name="amount_revenue" operator="+"/>
59 <field name="section_id" group="True"/>
64 <!-- Cases by section and category2 of case Search View -->
66 <record id="view_crm_case_section_categ_filter" model="ir.ui.view">
67 <field name="name">CRM Report - Sections and Type(Select)</field>
68 <field name="model">report.crm.case.section.categ2</field>
69 <field name="type">search</field>
70 <field name="arch" type="xml">
71 <search string="Cases by Section and Type">
72 <group col="10" colspan="4">
73 <filter string="This Year" icon="terp-hr"
74 domain="[('name','=',time.localtime()[0])]"
75 help="Cases by Section and Type for this year" />
76 <filter string="This Month" icon="terp-hr"
77 domain="[('month','=',time.localtime()[1])]"
78 help="Cases by Section and Type for this month" />
79 <separator orientation="vertical"/>
80 <field name="section_id"
81 default="context.get('section_id', False)"
82 select="1" widget="selection" />
83 <field name="category2_id" select="1"/>
84 <field name="nbr" select="1"/>
85 <field name="state" select="1"/>
91 <!-- Cases by section and category2 of case Action -->
93 <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_tree">
94 <field name="res_model">report.crm.case.section.categ2</field>
95 <field name="view_type">form</field>
96 <field name="view_mode">graph,tree</field>
97 <field name="search_view_id" ref="view_crm_case_section_categ_filter"/>
100 <!-- Cases by section and stage Tree View -->
102 <record model="ir.ui.view" id="view_crm_case_section_stage_tree">
103 <field name="name">CRM Report - Sections and Stage(Tree)</field>
104 <field name="model">report.crm.case.section.stage</field>
105 <field name="type">tree</field>
106 <field name="arch" type="xml">
107 <tree string="Cases by Section and Stage">
109 <field name="month"/>
110 <field name="user_id"/>
111 <field name="section_id"/>
112 <field name="stage_id"/>
113 <field name="amount_revenue"/>
115 <field name="delay_close"/>
116 <field name="state"/>
121 <!-- Cases by section and stage Form View -->
123 <record model="ir.ui.view" id="view_crm_case_section_stage_form">
124 <field name="name">CRM Report - Sections and Stage(Form)</field>
125 <field name="model">report.crm.case.section.stage</field>
126 <field name="type">form</field>
127 <field name="arch" type="xml">
128 <form string="Cases by Section and Stage">
130 <field name="month"/>
131 <field name="user_id"/>
132 <field name="section_id" select="1" widget="selection"/>
133 <field name="stage_id"/>
134 <field name="amount_revenue"/>
135 <field name="nbr" select="1"/>
136 <field name="state" select="1"/>
137 <field name="delay_close"/>
142 <!-- Cases by section and stage Graph View -->
144 <record model="ir.ui.view" id="view_crm_case_section_stage_graph">
145 <field name="name">CRM Report - Sections and Stage(Graph)</field>
146 <field name="model">report.crm.case.section.stage</field>
147 <field name="type">graph</field>
148 <field name="arch" type="xml">
149 <graph string="Cases by Section and Stage" type="bar" orientation="horizontal">
150 <field name="stage_id"/>
151 <field name="amount_revenue" operator="+"/>
152 <field name="section_id" group="True"/>
157 <!-- Cases by section and stage Search View -->
159 <record id="view_crm_case_section_stage_filter" model="ir.ui.view">
160 <field name="name">CRM Report - Sections and Stage(Select)</field>
161 <field name="model">report.crm.case.section.stage</field>
162 <field name="type">search</field>
163 <field name="arch" type="xml">
164 <search string="Cases by Section and Stage">
165 <group col="8" colspan="4">
166 <filter string="This Year" icon="terp-hr"
167 domain="[('name','=',time.localtime()[0])]"
168 help="Cases by Section and Stage for this year" />
169 <filter string="This Month" icon="terp-hr"
170 domain="[('month','=',time.localtime()[1])]"
171 help="Cases by Section and Stage for this month" />
172 <separator orientation="vertical"/>
173 <field name="section_id" select="1" widget="selection"/>
174 <field name="nbr" select="1"/>
175 <field name="state" select="1"/>
181 <!-- Cases by section and stage Action -->
183 <record model="ir.actions.act_window" id="action_report_crm_case_section_stage_tree">
184 <field name="res_model">report.crm.case.section.stage</field>
185 <field name="view_type">form</field>
186 <field name="view_mode">graph,tree</field>
187 <field name="search_view_id" ref="view_crm_case_section_stage_filter"/>
190 <!-- Cases by section, category and stage Tree View -->
192 <record model="ir.ui.view" id="view_crm_case_section_categ_stage_tree">
193 <field name="name">CRM Report - Section, Category and Stage(Tree)</field>
194 <field name="model">report.crm.case.section.categ.stage</field>
195 <field name="type">tree</field>
196 <field name="arch" type="xml">
197 <tree string="Cases by Section, Category and Stage">
199 <field name="month"/>
200 <field name="user_id"/>
201 <field name="section_id"/>
202 <field name="categ_id"/>
203 <field name="stage_id"/>
205 <field name="delay_close"/>
206 <field name="state"/>
211 <!-- Cases by section, category and stage Form View -->
213 <record model="ir.ui.view" id="view_crm_case_section_categ_stage_form">
214 <field name="name">CRM Report - Section, Category and Stage(Form)</field>
215 <field name="model">report.crm.case.section.categ.stage</field>
216 <field name="type">form</field>
217 <field name="arch" type="xml">
218 <form string="Cases by Section, Category and Stage">
220 <field name="month"/>
221 <field name="user_id"/>
222 <field name="section_id" select="1" widget="selection"/>
223 <field name="categ_id"/>
224 <field name="stage_id"/>
225 <field name="nbr" select="1"/>
226 <field name="state" select="1"/>
227 <field name="delay_close"/>
232 <!-- Cases by section, category and stage Search View -->
234 <record id="view_crm_case_section_categ_stage_filter" model="ir.ui.view">
235 <field name="name">CRM Report - Section, Category and Stage(Select)</field>
236 <field name="model">report.crm.case.section.categ.stage</field>
237 <field name="type">search</field>
238 <field name="arch" type="xml">
239 <search string="Cases by Section, Category and Stage">
240 <group col='8' colspan='4'>
241 <filter string="This Year" icon="terp-hr"
242 domain="[('name','=',time.localtime()[0])]"
243 help="Cases by Section, Category and Stage for this year" />
244 <filter string="This Month" icon="terp-hr"
245 domain="[('month','=',time.localtime()[1])]"
246 help="Cases by Section, Category and Stage for this month" />
247 <separator orientation="vertical"/>
248 <field name="section_id" select="1" widget="selection"/>
249 <field name="nbr" select="1"/>
250 <field name="state" select="1"/>
257 <!-- Cases by section, category and stage Graph View -->
259 <record model="ir.ui.view" id="view_crm_case_section_categ_stage_graph">
260 <field name="name">CRM Report - Section, Category and Stage(Select)</field>
261 <field name="model">report.crm.case.section.categ.stage</field>
262 <field name="type">graph</field>
263 <field name="arch" type="xml">
264 <graph string="Cases by Section, Category and Stage" type="bar" orientation="horizontal">
265 <field name="categ_id"/>
266 <field name="nbr" operator="+"/>
267 <field name="section_id" group="True"/>
272 <!-- Cases by section, category and stage Action -->
274 <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_stage_tree">
275 <field name="res_model">report.crm.case.section.categ.stage</field>
276 <field name="view_type">form</field>
277 <field name="view_mode">tree,graph</field>
278 <field name="search_view_id" ref="view_crm_case_section_categ_stage_filter"/>
281 <!-- Cases by section, category and category2 Tree View -->
283 <record model="ir.ui.view" id="view_crm_case_section_categ_categ2_tree">
284 <field name="name">CRM Report - Section, Category and Type(Tree)</field>
285 <field name="model">report.crm.case.section.categ.categ2</field>
286 <field name="type">tree</field>
287 <field name="arch" type="xml">
288 <tree string="Cases by Section, Category and Type">
290 <field name="month"/>
291 <field name="user_id"/>
292 <field name="section_id"/>
293 <field name="categ_id"/>
294 <field name="category2_id"/>
295 <field name="stage_id"/>
297 <field name="delay_close"/>
298 <field name="state"/>
303 <!-- Cases by section, category and category2 Form View -->
305 <record model="ir.ui.view" id="view_crm_case_section_categ_categ2_form">
306 <field name="name">CRM Report - Section, Category and Type(Form)</field>
307 <field name="model">report.crm.case.section.categ.categ2</field>
308 <field name="type">form</field>
309 <field name="arch" type="xml">
310 <form string="Cases by Section, Category and Type">
312 <field name="month"/>
313 <field name="user_id"/>
314 <field name="section_id" select="1" widget="selection"/>
315 <field name="categ_id"/>
316 <field name="category2_id"/>
317 <field name="stage_id"/>
318 <field name="nbr" select="1"/>
319 <field name="state" select="1"/>
320 <field name="delay_close"/>
325 <!-- Cases by section, category and category2 Search View -->
327 <record id="view_crm_case_section_categ_categ2_filter" model="ir.ui.view">
328 <field name="name">CRM Report - Section, Category and Type(Select)</field>
329 <field name="model">report.crm.case.section.categ.categ2</field>
330 <field name="type">search</field>
331 <field name="arch" type="xml">
332 <search string="Search Cases by User">
333 <group col='12' colspan='4'>
334 <filter string="This Year" icon="terp-hr"
335 domain="[('name','=',time.localtime()[0])]"
336 help="Cases by User for this year" />
337 <filter string="This Month" icon="terp-hr"
338 domain="[('month','=',time.localtime()[1])]"
339 help="Cases by User for this month" />
340 <separator orientation="vertical"/>
341 <field name="section_id" select="1" widget="selection"/>
342 <field name="nbr" select="1"/>
343 <field name="state" select="1"/>
349 <!-- Cases by section, category and category2 Graph View -->
351 <record model="ir.ui.view" id="view_crm_case_section_categ_categ2_graph">
352 <field name="name">CRM Report - Section, Category and Type(Select)</field>
353 <field name="model">report.crm.case.section.categ.categ2</field>
354 <field name="type">graph</field>
355 <field name="arch" type="xml">
356 <graph string="Cases by Section, Category and Type" type="bar" orientation="horizontal">
357 <field name="category2_id"/>
358 <field name="nbr" operator="+"/>
359 <field name="section_id" group="True"/>
364 <!-- Cases by section, category and category2 Action -->
366 <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_categ2_tree">
367 <field name="res_model">report.crm.case.section.categ.categ2</field>
368 <field name="view_type">form</field>
369 <field name="view_mode">tree,graph</field>
370 <field name="search_view_id" ref="view_crm_case_section_categ_categ2_filter"/>