Defining graph view and pivot view
In this recipe, we'll take a look at Odoo's business intelligence views. These are read-only views that are meant to present data.
Getting ready
We're still making use of the project
module here. You can configure a graph and pivot views to get different statistics. For our example, we will focus on the assigned user. We will generate a graph and pivot view to see the users of the tasks per user. By the way, the end user can generate statistics of their choice by modifying the view options.
How to do it...
- Define a graph view using bars:
<record id="view_project_tasks_graph" model="ir.ui.view"> Â Â Â Â <field name="model">project.task</field> Â Â Â Â <field name="arch" type="xml"> Â Â Â Â Â Â Â Â <graph type="bar"> Â Â Â Â Â Â Â Â Â ...