Book Image

Odoo Development Cookbook

By : Holger Brunn, Alexandre Fayolle, Daniel Reis
Book Image

Odoo Development Cookbook

By: Holger Brunn, Alexandre Fayolle, Daniel Reis

Overview of this book

Odoo is a full-featured open source ERP with a focus on extensibility. The flexibility and sustainability of open source is also a key selling point of Odoo. It is built on a powerful framework for rapid application development, both for back-end applications and front-end websites. The book starts by covering Odoo installation and administration, and provides a gentle introduction to application development. It then dives deep into several of the areas that an experienced developer will need to use. You’ll learn implement business logic, adapt the UI, and extend existing features.
Table of Contents (23 chapters)
Odoo Development Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Graph and pivot views


In this recipe, we'll have a look at Odoo's business intelligence views. These are read only views meant to present data.

Getting ready

We're still making use of the project module here. First, we need some configuration. Activate the checkbox Manage time estimation on tasks in Configuration | Settings and also install the module project_timesheet in order to be able to record some time on different tasks.

Now create some projects meant to be umbrella projects for the customers. Then, create a couple of tasks for each customer project. They are meant to model different activities you have per customer. Assign different managers to these projects and activate the box Use tasks. Finally, create tasks in these projects, give a time estimation per task, and write some work hours on these tasks.

How to do it...

  1. Define a graph view using bars:

    <record id="graph_project_task_bar" model="ir.ui.view">
        <field name="model">project.task</field>
        <field name...