Launchpad automatic translations update.
[odoo/odoo.git] / addons / crm / crm_report_view.xml
1 <?xml version="1.0"?>
2 <openerp>
3 <data>
4     #
5     # Cases by section and category2 of case
6     #
7 <!--            <menuitem id="next_id_64" name="Reporting" parent="crm.menu_crm"-->
8 <!--                    sequence="50"/>-->
9
10     <record model="ir.ui.view" id="view_crm_case_section_categ_tree">
11         <field name="name">CRM Report - Sections and Type(Tree)</field>
12         <field name="model">report.crm.case.section.categ2</field>
13         <field name="type">tree</field>
14         <field name="arch" type="xml">
15             <tree string="Cases by Section and Type">
16                 <field name="name"/>
17                 <field name="month"/>
18                 <field name="user_id"/>
19                 <field name="section_id"/>
20                 <field name="category2_id"/>
21                 <field name="stage_id"/>
22                 <field name="amount_revenue"/>
23                 <field name="nbr"/>
24                 <field name="delay_close"/>
25                 <field name="state"/>
26             </tree>
27         </field>
28     </record>
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">
35                 <field name="name"/>
36                 <field name="month"/>
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"/>
45             </form>
46         </field>
47     </record>
48     <record model="ir.ui.view" id="view_crm_case_section_categ_graph">
49         <field name="name">CRM Report - Sections and Type(Graph)</field>
50         <field name="model">report.crm.case.section.categ2</field>
51         <field name="type">graph</field>
52         <field name="arch" type="xml">
53             <graph string="Cases by Section and Type" type="bar" orientation="horizontal">
54                 <field name="category2_id"/>
55                 <field name="amount_revenue" operator="+"/>
56                 <field name="section_id" group="True"/>
57             </graph>
58         </field>
59     </record>
60
61     <record id="view_crm_case_section_categ_filter" model="ir.ui.view">
62             <field name="name">CRM Report - Sections and Type(Select)</field>
63             <field name="model">report.crm.case.section.categ2</field>
64             <field name="type">search</field>
65             <field name="arch" type="xml">
66                 <search string="Cases by Section and Type">
67                    <group col="10" colspan="4">
68                                 <filter string="This Year" icon="terp-hr" domain="[('name','=',time.localtime()[0])]" help="Cases by Section and Type for this year"/>
69                                                 <filter string="This Month" icon="terp-hr" domain="[('month','=',time.localtime()[1])]" help="Cases by Section and Type for this month"/>
70                                                 <separator orientation="vertical"/>
71                                                 <field name="section_id" default="context.get('section_id', False)" select="1" widget="selection"/>
72                                 <field name="category2_id" select="1"/>
73                                 <field name="nbr" select="1"/>
74                                 <field name="state" select="1"/>
75                    </group>
76                </search>
77             </field>
78         </record>
79
80     <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_tree">
81         <field name="res_model">report.crm.case.section.categ2</field>
82         <field name="view_type">form</field>
83         <field name="view_mode">graph,tree</field>
84         <field name="search_view_id" ref="view_crm_case_section_categ_filter"/>
85     </record>
86 <!--    <menuitem parent="next_id_64" name="Cases by Section and Type" action="action_report_crm_case_section_categ_tree" id="menu_crm_case_section_categ_tree"/>-->
87
88     #
89     # Cases by section and stage
90     #
91
92     <record model="ir.ui.view" id="view_crm_case_section_stage_tree">
93         <field name="name">CRM Report - Sections and Stage(Tree)</field>
94         <field name="model">report.crm.case.section.stage</field>
95         <field name="type">tree</field>
96         <field name="arch" type="xml">
97             <tree string="Cases by Section and Stage">
98                 <field name="name"/>
99                 <field name="month"/>
100                 <field name="user_id"/>
101                 <field name="section_id"/>
102                 <field name="stage_id"/>
103                 <field name="amount_revenue"/>
104                 <field name="nbr"/>
105                 <field name="delay_close"/>
106                 <field name="state"/>
107             </tree>
108         </field>
109     </record>
110     <record model="ir.ui.view" id="view_crm_case_section_stage_form">
111         <field name="name">CRM Report - Sections and Stage(Form)</field>
112         <field name="model">report.crm.case.section.stage</field>
113         <field name="type">form</field>
114         <field name="arch" type="xml">
115             <form string="Cases by Section and Stage">
116                 <field name="name"/>
117                 <field name="month"/>
118                 <field name="user_id"/>
119                 <field name="section_id" select="1" widget="selection"/>
120                 <field name="stage_id"/>
121                 <field name="amount_revenue"/>
122                 <field name="nbr" select="1"/>
123                 <field name="state" select="1"/>
124                 <field name="delay_close"/>
125             </form>
126         </field>
127     </record>
128     <record model="ir.ui.view" id="view_crm_case_section_stage_graph">
129         <field name="name">CRM Report - Sections and Stage(Graph)</field>
130         <field name="model">report.crm.case.section.stage</field>
131         <field name="type">graph</field>
132         <field name="arch" type="xml">
133             <graph string="Cases by Section and Stage" type="bar" orientation="horizontal">
134                 <field name="stage_id"/>
135                 <field name="amount_revenue" operator="+"/>
136                 <field name="section_id" group="True"/>
137             </graph>
138         </field>
139     </record>
140         <record id="view_crm_case_section_stage_filter" model="ir.ui.view">
141             <field name="name">CRM Report - Sections and Stage(Select)</field>
142             <field name="model">report.crm.case.section.stage</field>
143             <field name="type">search</field>
144             <field name="arch" type="xml">
145                 <search string="Cases by Section and Stage">
146                    <group col="8" colspan="4">
147                                 <filter string="This Year" icon="terp-hr" domain="[('name','=',time.localtime()[0])]" help="Cases by Section and Stage for this year"/>
148                                                 <filter string="This Month" icon="terp-hr" domain="[('month','=',time.localtime()[1])]" help="Cases by Section and Stage for this month"/>
149                                                 <separator orientation="vertical"/>
150                                                 <field name="section_id" select="1" widget="selection"/>
151                                 <field name="nbr" select="1"/>
152                                 <field name="state" select="1"/>
153                    </group>
154                </search>
155             </field>
156         </record>
157
158     <record model="ir.actions.act_window" id="action_report_crm_case_section_stage_tree">
159         <field name="res_model">report.crm.case.section.stage</field>
160         <field name="view_type">form</field>
161         <field name="view_mode">graph,tree</field>
162         <field name="search_view_id" ref="view_crm_case_section_stage_filter"/>
163     </record>
164 <!--    <menuitem parent="next_id_64" name="Cases by Section and Stage" action="action_report_crm_case_section_stage_tree" id="menu_crm_case_section_stage_tree"/>-->
165
166     #
167     # Cases by section, category and stage
168     #
169
170     <record model="ir.ui.view" id="view_crm_case_section_categ_stage_tree">
171         <field name="name">CRM Report - Section, Category and Stage(Tree)</field>
172         <field name="model">report.crm.case.section.categ.stage</field>
173         <field name="type">tree</field>
174         <field name="arch" type="xml">
175             <tree string="Cases by Section, Category and Stage">
176                 <field name="name"/>
177                 <field name="month"/>
178                 <field name="user_id"/>
179                 <field name="section_id"/>
180                 <field name="categ_id"/>
181                 <field name="stage_id"/>
182                 <field name="nbr"/>
183                 <field name="delay_close"/>
184                 <field name="state"/>
185             </tree>
186         </field>
187     </record>
188     <record model="ir.ui.view" id="view_crm_case_section_categ_stage_form">
189         <field name="name">CRM Report - Section, Category and Stage(Form)</field>
190         <field name="model">report.crm.case.section.categ.stage</field>
191         <field name="type">form</field>
192         <field name="arch" type="xml">
193             <form string="Cases by Section, Category and Stage">
194                 <field name="name"/>
195                 <field name="month"/>
196                 <field name="user_id"/>
197                 <field name="section_id" select="1" widget="selection"/>
198                 <field name="categ_id"/>
199                 <field name="stage_id"/>
200                 <field name="nbr" select="1"/>
201                 <field name="state" select="1"/>
202                 <field name="delay_close"/>
203             </form>
204         </field>
205     </record>
206
207     <record id="view_crm_case_section_categ_stage_filter" model="ir.ui.view">
208             <field name="name">CRM Report - Section, Category and Stage(Select)</field>
209             <field name="model">report.crm.case.section.categ.stage</field>
210             <field name="type">search</field>
211             <field name="arch" type="xml">
212                 <search string="Cases by Section, Category and Stage">
213                    <group col='8' colspan='4'>
214                                 <filter string="This Year" icon="terp-hr" domain="[('name','=',time.localtime()[0])]" help="Cases by Section, Category and Stage for this year"/>
215                                                 <filter string="This Month" icon="terp-hr" domain="[('month','=',time.localtime()[1])]" help="Cases by Section, Category and Stage for this month"/>
216                                                 <separator orientation="vertical"/>
217                                                 <field name="section_id" select="1" widget="selection"/>
218                                                 <field name="nbr" select="1"/>
219                                 <field name="state" select="1"/>
220
221                    </group>
222                </search>
223             </field>
224         </record>
225         <record model="ir.ui.view" id="view_crm_case_section_categ_stage_graph">
226         <field name="name">CRM Report - Section, Category and Stage(Select)</field>
227         <field name="model">report.crm.case.section.categ.stage</field>
228         <field name="type">graph</field>
229         <field name="arch" type="xml">
230             <graph string="Cases by Section, Category and Stage" type="bar" orientation="horizontal">
231                 <field name="categ_id"/>
232                 <field name="nbr" operator="+"/>
233                 <field name="section_id" group="True"/>
234             </graph>
235         </field>
236     </record>
237     <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_stage_tree">
238         <field name="res_model">report.crm.case.section.categ.stage</field>
239         <field name="view_type">form</field>
240         <field name="view_mode">tree,graph</field>
241         <field name="search_view_id" ref="view_crm_case_section_categ_stage_filter"/>
242     </record>
243 <!--    <menuitem parent="next_id_64" name="Cases by Section, Category and Stage" action="action_report_crm_case_section_categ_stage_tree" id="menu_crm_case_section_categ_stage_tree"/>-->
244
245     #
246     # Cases by section, category and category2
247     #
248
249     <record model="ir.ui.view" id="view_crm_case_section_categ_categ2_tree">
250         <field name="name">CRM Report - Section, Category and Type(Tree)</field>
251         <field name="model">report.crm.case.section.categ.categ2</field>
252         <field name="type">tree</field>
253         <field name="arch" type="xml">
254             <tree string="Cases by Section, Category and Type">
255                 <field name="name"/>
256                 <field name="month"/>
257                 <field name="user_id"/>
258                 <field name="section_id"/>
259                 <field name="categ_id"/>
260                 <field name="category2_id"/>
261                 <field name="stage_id"/>
262                 <field name="nbr"/>
263                 <field name="delay_close"/>
264                 <field name="state"/>
265             </tree>
266         </field>
267     </record>
268     <record model="ir.ui.view" id="view_crm_case_section_categ_categ2_form">
269         <field name="name">CRM Report - Section, Category and Type(Form)</field>
270         <field name="model">report.crm.case.section.categ.categ2</field>
271         <field name="type">form</field>
272         <field name="arch" type="xml">
273             <form string="Cases by Section, Category and Type">
274                 <field name="name"/>
275                 <field name="month"/>
276                 <field name="user_id"/>
277                 <field name="section_id" select="1" widget="selection"/>
278                 <field name="categ_id"/>
279                 <field name="category2_id"/>
280                 <field name="stage_id"/>
281                 <field name="nbr" select="1"/>
282                 <field name="state" select="1"/>
283                 <field name="delay_close"/>
284             </form>
285         </field>
286     </record>
287
288         <record id="view_crm_case_section_categ_categ2_filter" model="ir.ui.view">
289             <field name="name">CRM Report - Section, Category and Type(Select)</field>
290             <field name="model">report.crm.case.section.categ.categ2</field>
291             <field name="type">search</field>
292             <field name="arch" type="xml">
293                 <search string="Search Cases by User">
294                    <group col='12' colspan='4'>
295                                 <filter string="This Year" icon="terp-hr" domain="[('name','=',time.localtime()[0])]" help="Cases by User for this year"/>
296                                                 <filter string="This Month" icon="terp-hr" domain="[('month','=',time.localtime()[1])]" help="Cases by User for this month"/>
297                                                 <separator orientation="vertical"/>
298                                                 <field name="section_id" select="1" widget="selection"/>
299                                                 <field name="nbr" select="1"/>
300                                 <field name="state" select="1"/>
301                    </group>
302                </search>
303             </field>
304     </record>
305
306     <record model="ir.ui.view" id="view_crm_case_section_categ_categ2_graph">
307         <field name="name">CRM Report - Section, Category and Type(Select)</field>
308         <field name="model">report.crm.case.section.categ.categ2</field>
309         <field name="type">graph</field>
310         <field name="arch" type="xml">
311             <graph string="Cases by Section, Category and Type" type="bar" orientation="horizontal">
312                 <field name="category2_id"/>
313                 <field name="nbr" operator="+"/>
314                 <field name="section_id" group="True"/>
315             </graph>
316         </field>
317     </record>
318     <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_categ2_tree">
319         <field name="res_model">report.crm.case.section.categ.categ2</field>
320         <field name="view_type">form</field>
321         <field name="view_mode">tree,graph</field>
322         <field name="search_view_id" ref="view_crm_case_section_categ_categ2_filter"/>
323     </record>
324 <!--    <menuitem parent="next_id_64" name="Cases by Section, Category and Type" action="action_report_crm_case_section_categ_categ2_tree" id="menu_crm_case_section_categ_categ2_tree"/>-->
325 </data>
326 </openerp>