* In reports, graphs on opportunities shows estimated revenues instead of number...
[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="amount_revenue"/>
20                 <field name="nbr"/>
21                 <field name="delay_close"/>
22                 <field name="state"/>
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="amount_revenue"/>
38                 <field name="nbr" select="1"/>
39                 <field name="state" select="1"/>
40                 <field name="delay_close"/>
41             </form>
42         </field>
43     </record>
44     <record model="ir.ui.view" id="view_crm_case_section_categ_graph">
45         <field name="name">CRM Report - Sections and Category2(Graph)</field>
46         <field name="model">report.crm.case.section.categ2</field>
47         <field name="type">graph</field>
48         <field name="arch" type="xml">
49             <graph string="Cases by Section and Category2" type="bar" orientation="horizontal">
50                 <field name="category2_id"/>
51                 <field name="amount_revenue" operator="+"/>
52                 <field name="section_id" group="True"/>
53             </graph>
54         </field>
55     </record>
56
57     <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_tree_month">
58         <field name="res_model">report.crm.case.section.categ2</field>
59         <field name="view_type">form</field>
60         <field name="view_mode">graph,tree</field>
61         <field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
62     </record>
63     <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"/>
64
65     <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_tree">
66         <field name="res_model">report.crm.case.section.categ2</field>
67         <field name="view_type">form</field>
68         <field name="view_mode">graph,tree</field>
69     </record>
70     <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"/>
71
72     #
73     # Cases by section and stage
74     #
75
76     <record model="ir.ui.view" id="view_crm_case_section_stage_tree">
77         <field name="name">CRM Report - Sections and Stage(Tree)</field>
78         <field name="model">report.crm.case.section.stage</field>
79         <field name="type">tree</field>
80         <field name="arch" type="xml">
81             <tree string="Cases by Section and Stage">
82                 <field name="name"/>
83                 <field name="user_id"/>
84                 <field name="section_id"/>
85                 <field name="stage_id"/>
86                 <field name="amount_revenue"/>
87                 <field name="nbr"/>
88                 <field name="delay_close"/>
89                 <field name="state"/>
90             </tree>
91         </field>
92     </record>
93     <record model="ir.ui.view" id="view_crm_case_section_stage_form">
94         <field name="name">CRM Report - Sections and Stage(Form)</field>
95         <field name="model">report.crm.case.section.stage</field>
96         <field name="type">form</field>
97         <field name="arch" type="xml">
98             <form string="Cases by Section and Stage">
99                 <field name="name"/>
100                 <field name="user_id"/>
101                 <field name="section_id" select="1"/>
102                 <field name="stage_id"/>
103                 <field name="amount_revenue"/>
104                 <field name="nbr" select="1"/>
105                 <field name="state" select="1"/>
106                 <field name="delay_close"/>
107             </form>
108         </field>
109     </record>
110     <record model="ir.ui.view" id="view_crm_case_section_stage_graph">
111         <field name="name">CRM Report - Sections and Stage(Graph)</field>
112         <field name="model">report.crm.case.section.stage</field>
113         <field name="type">graph</field>
114         <field name="arch" type="xml">
115             <graph string="Cases by Section and Stage" type="bar" orientation="horizontal">
116                 <field name="stage_id"/>
117                 <field name="amount_revenue" operator="+"/>
118                 <field name="section_id" group="True"/>
119             </graph>
120         </field>
121     </record>
122
123     <record model="ir.actions.act_window" id="action_report_crm_case_section_stage_tree_month">
124         <field name="res_model">report.crm.case.section.stage</field>
125         <field name="view_type">form</field>
126         <field name="view_mode">graph,tree</field>
127         <field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
128     </record>
129     <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"/>
130     <record model="ir.actions.act_window" id="action_report_crm_case_section_stage_tree">
131         <field name="res_model">report.crm.case.section.stage</field>
132         <field name="view_type">form</field>
133         <field name="view_mode">graph,tree</field>
134     </record>
135     <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"/>
136
137     #
138     # Cases by section, category and stage
139     #
140
141     <record model="ir.ui.view" id="view_crm_case_section_categ_stage_tree">
142         <field name="name">CRM Report - Section, Category and Stage(Tree)</field>
143         <field name="model">report.crm.case.section.categ.stage</field>
144         <field name="type">tree</field>
145         <field name="arch" type="xml">
146             <tree string="Cases by Section, Category and Stage">
147                 <field name="name"/>
148                 <field name="user_id"/>
149                 <field name="section_id"/>
150                 <field name="categ_id"/>
151                 <field name="stage_id"/>
152                 <field name="nbr"/>
153                 <field name="delay_close"/>
154                 <field name="state"/>
155             </tree>
156         </field>
157     </record>
158     <record model="ir.ui.view" id="view_crm_case_section_categ_stage_form">
159         <field name="name">CRM Report - Section, Category and Stage(Form)</field>
160         <field name="model">report.crm.case.section.categ.stage</field>
161         <field name="type">form</field>
162         <field name="arch" type="xml">
163             <form string="Cases by Section, Category and Stage">
164                 <field name="name"/>
165                 <field name="user_id"/>
166                 <field name="section_id" select="1"/>
167                 <field name="categ_id"/>
168                 <field name="stage_id"/>
169                 <field name="nbr" select="1"/>
170                 <field name="state" select="1"/>
171                 <field name="delay_close"/>
172             </form>
173         </field>
174     </record>
175
176     <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_stage_tree_month">
177         <field name="res_model">report.crm.case.section.categ.stage</field>
178         <field name="view_type">form</field>
179         <field name="view_mode">tree</field>
180         <field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
181     </record>
182     <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"/>
183     <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_stage_tree">
184         <field name="res_model">report.crm.case.section.categ.stage</field>
185         <field name="view_type">form</field>
186         <field name="view_mode">tree</field>
187     </record>
188     <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"/>
189
190     #
191     # Cases by section, category and category2
192     #
193
194     <record model="ir.ui.view" id="view_crm_case_section_categ_categ2_tree">
195         <field name="name">CRM Report - Section, Category and Category2(Tree)</field>
196         <field name="model">report.crm.case.section.categ.categ2</field>
197         <field name="type">tree</field>
198         <field name="arch" type="xml">
199             <tree string="Cases by Section, Category and Category2">
200                 <field name="name"/>
201                 <field name="user_id"/>
202                 <field name="section_id"/>
203                 <field name="categ_id"/>
204                 <field name="category2_id"/>
205                 <field name="stage_id"/>
206                 <field name="nbr"/>
207                 <field name="delay_close"/>
208                 <field name="state"/>
209             </tree>
210         </field>
211     </record>
212     <record model="ir.ui.view" id="view_crm_case_section_categ_categ2_form">
213         <field name="name">CRM Report - Section, Category and Category2(Form)</field>
214         <field name="model">report.crm.case.section.categ.categ2</field>
215         <field name="type">form</field>
216         <field name="arch" type="xml">
217             <form string="Cases by Section, Category and Category2">
218                 <field name="name"/>
219                 <field name="user_id"/>
220                 <field name="section_id" select="1"/>
221                 <field name="categ_id"/>
222                 <field name="category2_id"/>
223                 <field name="stage_id"/>
224                 <field name="nbr" select="1"/>
225                 <field name="state" select="1"/>
226                 <field name="delay_close"/>
227             </form>
228         </field>
229     </record>
230
231     <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_categ2_tree_month">
232         <field name="res_model">report.crm.case.section.categ.categ2</field>
233         <field name="view_type">form</field>
234         <field name="view_mode">tree</field>
235         <field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
236     </record>
237     <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"/>
238     <record model="ir.actions.act_window" id="action_report_crm_case_section_categ_categ2_tree">
239         <field name="res_model">report.crm.case.section.categ.categ2</field>
240         <field name="view_type">form</field>
241         <field name="view_mode">tree</field>
242     </record>
243     <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"/>
244 </data>
245 </openerp>