How to do it...

  1. 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">
<field name="user_id"/>
<field name="stage_id"/>
</graph>
</field>
</record>
  1. Define a pivot view:
<record id="view_project_tasks_pivot" model="ir.ui.view">
<field name="model">project.task</field>
<field name="arch" type="xml">
<pivot>
<field name="user_id" type="row"/>
<field name="project_id" type="col"/>
<field name="stage_id" type="col"/>
</pivot>
</field>
</record>
  1. Add menus and actions using this view. This is left as an exercise for the reader.

If everything went well, you should see graphs that show how many tasks are assigned to which user and the state of those tasks.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset