Defining the dashboard view
A new view called dashboard was introduced with Odoo version 12. This is used to display multiple views and the various business KPIs in a single screen.
Getting ready
The dashboard
view is part of the Odoo Enterprise edition, so you can't use it with Community edition. If you are using the Enterprise edition, you need to add the dependency of the web_dashboard
in the manifest file of your module.
In our example, we will display a few KPIs and a few existing views. We will display the graph
and the pivot
view in the same screen, so follow the Defining graph views recipe, if you haven't created the pivot
and graph
views. We will use the ID of these views in the dashboard
view.
How to do it...
- Define a
dashboard
view:<record id="view_project_tasks_dashboard" model="ir.ui.view"> Â Â Â Â <field name="name">project task dashbaord</field> Â Â Â Â <field...