[REF] purchase: search view of purchase order and form view of merge order wizard
[odoo/odoo.git] / addons / board_crm_configuration / board_crm_statistical_view.xml
1 <?xml version="1.0"?>
2 <openerp>
3     <data>
4         <!--
5          Board for statistical view of the sections
6          -->
7         <record model="ir.ui.view" id="view_crm_lead_stage_graph1">
8             <field name="name">Leads By Stage - Graph</field>
9             <field name="model">report.crm.lead.section.stage</field>
10             <field name="type">graph</field>
11             <field name="arch" type="xml">
12                 <graph string="Leads By Stage" type="pie">
13                     <field name="stage_id"/>
14                     <field name="nbr" operator="+"/>
15                     <field name="state" group="True"/>
16                 </graph>
17             </field>
18         </record>
19
20         <record model="ir.ui.view" id="view_crm_opportunity_categ_graph">
21             <field name="name">report.crm.opportunity.categ.graph</field>
22             <field name="model">report.crm.opportunity.categ</field>
23             <field name="type">graph</field>
24             <field name="arch" type="xml">
25                 <graph string="Opportunity by Sections and Categories" type="bar" orientation="horizontal">
26                     <field name="categ_id"/>
27                     <field name="nbr" operator="+"/>
28                     <field name="state" group="True"/>
29                 </graph>
30             </field>
31         </record>
32
33         <act_window name="Opportunities By Categories"
34             domain="[('state','!=','done'),('state','!=','cancel')]"
35             res_model="report.crm.opportunity.categ"
36             view_type="form"
37             view_mode="graph,tree,form"
38             view_id="view_crm_opportunity_categ_graph"
39             id="act_oppor_categ"/>
40
41         <record model="ir.actions.act_window" id="act_leads_state">
42             <field name="res_model">report.crm.lead.section.stage</field>
43             <field name="view_type">form</field>
44             <field name="view_mode">graph,tree,form</field>
45             <field name="view_id" ref="view_crm_lead_stage_graph1"/>
46             <field name="domain">[('state','!=','done'),('state','!=','cancel')]</field>
47         </record>
48
49         <act_window name="Leads Of The Month By User"
50             domain="[('month','=',time.strftime('%%m')),('state','!=','cancel')]"
51             res_model="report.crm.lead.user"
52             view_type="form"
53             view_mode="graph,tree,form"
54             view_id="view_crm_lead_stage_graph1"
55             id="act_leads_month_user"/>
56
57         <record model="ir.ui.view" id="board_crm_statistical_form">
58             <field name="name">CRM - Statistical Dashboard Form</field>
59             <field name="model">board.board</field>
60             <field name="type">form</field>
61             <field name="arch" type="xml">
62                 <form string="Statistics Dashboard">
63                     <hpaned>
64                         <child1>
65                             <action
66                                 string="Opportunities By Categories"
67                                 name="%(act_oppor_categ)d"
68                                 colspan="4"
69                                 height="200"
70                                 width="250"/>
71
72                             <action
73                                 string="Leads By Stage"
74                                 name="%(act_leads_state)d"
75                                 height="200"
76                                 colspan="4"/>
77
78                         </child1>
79                         <child2>
80
81                             <action
82                                 string="Leads Of The Month By User"
83                                 name="%(act_leads_month_user)d"
84                                 colspan="4"/>
85
86                         </child2>
87                     </hpaned>
88                 </form>
89             </field>
90         </record>
91
92         <record model="ir.actions.act_window" id="open_board_statistical_dash">
93             <field name="name">CRM - Statistics Dashboard</field>
94             <field name="res_model">board.board</field>
95             <field name="view_type">form</field>
96             <field name="view_mode">form</field>
97             <field name="usage">menu</field>
98             <field name="view_id" ref="board_crm_statistical_form"/>
99         </record>
100
101                 <menuitem icon="terp-graph" id="base.dashboard" name="Dashboards" sequence="2" parent="base.reporting_menu"/>
102         <menuitem
103             name="CRM Configuration" parent="base.dashboard"
104             id="menu_board_crm_config"
105             groups="crm.group_crm_manager"/>
106         <menuitem
107             name="Statistics Dashboard" parent="menu_board_crm_config"
108             action="open_board_statistical_dash"
109             sequence="2"
110             id="menu_board_statistics_dash"
111             icon="terp-graph"/>
112
113     </data>
114 </openerp>