Defining the gantt view
Odoo version 13 added a new gantt
view with new options. The gantt
view is useful for seeing overall progress and scheduling business processes. In this recipe, we will create a new gantt
view and look at its options.
Getting ready
The gantt
view is part of the Odoo Enterprise edition, so you can't use it with the Community edition. If you are using the Enterprise edition, you need to add the web_gantt
dependency in the manifest file of your module.
In our example, we will continue using the my_project
module from the previous recipe. We will create a new gantt
view for the tasks of the project.
How to do it...
- Define a
gantt
view for the task model as follows:<record id="view_project_tasks_gantt" model="ir.ui.view"> Â Â Â Â <field name="name">project task gantt</field> Â Â Â Â <field name="model">project.task</field> Â Â Â ...