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 hostel
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 hostel room category. 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="hostel_room_category_view_graph" model="ir.ui.view"> <field name="name">Hostel Room Categories Graph</field> <field name="model">hostel.room.category</field> <field name="arch" type="xml"> ...