1 <?xml version="1.0" encoding="utf-8"?>
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">['&',('parent_id','=',False),('cost_type','=','fuel')]</field>
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">['&',('parent_id','=',False),('cost_type','=','services')]</field>
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">['&',('parent_id','=',False),('cost_type','=','contract')]</field>
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>
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">
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.
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_report"></field>
58 <field name="view_type">form</field>
59 <field name="view_mode">graph</field>
60 <field name="context">{"search_default_parent_false" : True,"search_default_groupby_year" : True, "search_default_groupby_cost_subtype" : True,"search_default_groupby_vehicle_id" : True}</field>
61 <field name="help" type="html">
63 OpenERP helps you managing the costs for your different vehicles
64 Costs are generally created from services and contract and appears here.
67 Thanks to the different filters, OpenERP can only print the effective
68 costs, sort them by type and by vehicle.
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_report"></field>
77 <field name="view_type">form</field>
78 <field name="view_mode">graph</field>
79 <field name="context">{"search_default_parent_true" : True,"search_default_groupby_cost_subtype" : True,"search_default_groupby_parent_id" : True,}</field>
80 <field name="help" type="html">
82 OpenERP helps you managing the costs for your different vehicles
83 Costs are generally created from services and contract and appears here.
86 Thanks to the different filters, OpenERP can only print the effective
87 costs, sort them by type and by vehicle.
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">
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"/>
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"/>
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">
122 <b>Fleet dashboard is empty.</b>
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.
128 You can filter and group data before inserting into the
129 dashboard using the search options.
135 <menuitem id="menu_fleet_dashboard"
136 parent="base.menu_reporting_dashboard"
137 action="open_board_fleet"
139 groups="group_fleet_user"/>
141 <menuitem name="Fleet" parent="base.menu_reporting" id="menu_fleet_reporting" sequence="50" groups="group_fleet_manager"/>
143 <menuitem id="menu_fleet_reporting_costs"
144 parent="menu_fleet_reporting"
145 action="action_fleet_reporting_costs"
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"
152 groups="group_fleet_manager"/>