Launchpad automatic translations update.
[odoo/odoo.git] / addons / fleet / fleet_board_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3 <data>
4   <record model="ir.actions.act_window" id="action_fleet_vehicle_log_fuel_graph">
5       <field name="name">Fuel Costs by Month</field>
6       <field name="res_model">fleet.vehicle.cost</field>
7       <field name="view_id" ref="fleet_vehicle_costs_graph"></field>
8       <field name="view_type">form</field>
9       <field name="view_mode">tree</field>
10       <field name="domain">['&amp;',('parent_id','=',False),('cost_type','=','fuel')]</field>
11     </record>
12
13     <record model="ir.actions.act_window" id="action_fleet_vehicle_log_services_graph">
14       <field name="name">Services Costs by Month</field>
15       <field name="res_model">fleet.vehicle.cost</field>
16       <field name="view_id" ref="fleet_vehicle_costs_graph" />
17       <field name="view_type">form</field>
18       <field name="view_mode">tree</field>
19       <field name="domain">['&amp;',('parent_id','=',False),('cost_type','=','services')]</field>
20     </record>
21
22     <record model="ir.actions.act_window" id="action_fleet_vehicle_log_contract_graph">
23       <field name="name">Contracts Costs by Month</field>
24       <field name="res_model">fleet.vehicle.cost</field>
25       <field name="view_id" ref="fleet_vehicle_costs_graph"></field>
26       <field name="view_type">form</field>
27       <field name="view_mode">tree</field>
28       <field name="domain">['&amp;',('parent_id','=',False),('cost_type','=','contract')]</field>
29     </record>
30
31     <record model="ir.actions.act_window" id="action_fleet_vehicle_costs_graph">
32       <field name="name">Costs by Month</field>
33       <field name="res_model">fleet.vehicle.cost</field>
34       <field name="view_id" ref="fleet_vehicle_costs_graph"></field>
35       <field name="view_type">form</field>
36       <field name="view_mode">tree</field>
37       <field name="domain">[('parent_id','=',False)]</field>
38     </record>
39
40     <record model="ir.actions.act_window" id="action_fleet_vehicle_kanban">
41       <field name="name">Vehicles with alerts</field>
42       <field name="res_model">fleet.vehicle</field>
43       <field name="view_id" ref="fleet_vehicle_kanban"></field>
44       <field name="view_type">form</field>
45       <field name="view_mode">tree</field>
46       <field name="domain">['|',('contract_renewal_due_soon','=',True),('contract_renewal_overdue','=',True)]</field>
47       <field name="help" type="html">
48         <p>
49           Here are displayed vehicles for which one or more contracts need to be renewed. If you see this message, then there is no contracts to renew.
50         </p>
51       </field>
52     </record>
53
54     <record model="ir.actions.act_window" id="action_fleet_reporting_costs">
55       <field name="name">Costs Analysis</field>
56       <field name="res_model">fleet.vehicle.cost</field>
57       <field name="view_id" ref="fleet_vehicle_costs_tree"></field>
58       <field name="view_type">form</field>
59       <field name="view_mode">tree</field>
60       <field name="context">{"search_default_parent_false" : True,"search_default_groupby_year" : True,"search_default_groupby_cost_type" : True,"search_default_groupby_cost_subtype" : True, "search_default_groupby_vehicle_id" : True,}</field>
61       <field name="help" type="html">
62         <p>
63           OpenERP helps you managing the costs for your different vehicles
64           Costs are generally created from services and contract and appears here.
65         </p>
66         <p>
67           Thanks to the different filters, OpenERP can only print the effective
68           costs, sort them by type and by vehicle.
69         </p>
70       </field>
71     </record>
72
73     <record model="ir.actions.act_window" id="action_fleet_reporting_costs_non_effective">
74       <field name="name">Indicative Costs Analysis</field>
75       <field name="res_model">fleet.vehicle.cost</field>
76       <field name="view_id" ref="fleet_vehicle_costs_tree"></field>
77       <field name="view_type">form</field>
78       <field name="view_mode">tree</field>
79       <field name="context">{"search_default_parent_true" : True,"search_default_groupby_cost_subtype" : True,"search_default_groupby_cost_type" : True,"search_default_groupby_parent_id" : True,}</field>
80       <field name="help" type="html">
81         <p>
82           OpenERP helps you managing the costs for your different vehicles
83           Costs are generally created from services and contract and appears here.
84         </p>
85         <p>
86           Thanks to the different filters, OpenERP can only print the effective
87           costs, sort them by type and by vehicle.
88         </p>
89       </field>
90     </record>
91
92     <record id="board_fleet_form" model="ir.ui.view">
93         <field name="name">board.fleet.form</field>
94         <field name="model">board.board</field>
95         <field name="arch" type="xml">
96             <form string="Fleet Dashboard"  version="7.0">
97                 <board style="2-1">
98                     <column>
99                       <action string="Vehicles With Alerts" name="%(fleet.action_fleet_vehicle_kanban)d" view_mode="kanban"/>
100                       <action string="Costs by Month" name="%(fleet.action_fleet_vehicle_costs_graph)d" view_mode="graph,tree"/>
101                     </column>
102                     <column>
103                       <action string="Fuel Costs" name="%(fleet.action_fleet_vehicle_log_fuel_graph)d" view_mode="graph,tree"/>
104                       <action string="Services Costs" name="%(fleet.action_fleet_vehicle_log_services_graph)d" view_mode="graph,tree"/>
105                       <action string="Contracts Costs" name="%(fleet.action_fleet_vehicle_log_contract_graph)d" view_mode="graph,tree"/>
106                     </column>
107                 </board>
108             </form>
109         </field>
110     </record>
111
112     <record id="open_board_fleet" model="ir.actions.act_window">
113         <field name="name">Fleet</field>
114         <field name="res_model">board.board</field>
115         <field name="view_type">form</field>
116         <field name="view_mode">form</field>
117         <field name="usage">menu</field>
118         <field name="view_id" ref="board_fleet_form"/>
119             <field name="help" type="html">
120               <div class="oe_empty_custom_dashboard">
121                   <p>
122                     <b>Fleet dashboard is empty.</b>
123                   </p><p>
124                     To add your first report into this dashboard, go to any
125                     menu, switch to list or graph view, and click <i>'Add to
126                     Dashboard'</i> in the extended search options.
127                   </p><p>
128                     You can filter and group data before inserting into the
129                     dashboard using the search options.
130                   </p>
131               </div>
132             </field>
133     </record>
134     
135     <menuitem id="menu_fleet_dashboard" 
136               parent="base.menu_reporting_dashboard" 
137               action="open_board_fleet" 
138               sequence="50"
139               groups="group_fleet_user"/>
140     
141     <menuitem name="Fleet" parent="base.menu_reporting" id="menu_fleet_reporting" sequence="50" groups="group_fleet_manager"/>
142
143     <menuitem id="menu_fleet_reporting_costs" 
144               parent="menu_fleet_reporting" 
145               action="action_fleet_reporting_costs" 
146               sequence="1"
147               groups="group_fleet_manager"/>
148     <menuitem id="menu_fleet_reporting_indicative_costs" 
149               parent="menu_fleet_reporting" 
150               action="action_fleet_reporting_costs_non_effective" 
151               sequence="2"
152               groups="group_fleet_manager"/>
153 </data>
154 </openerp>