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_hostel
module from the previous recipe. We will create a new gantt
view for the hostel room category.
How to do it...
- Define a
gantt
view for the hostel room category model as follows:<record id="hostel_room_category_view_gantt" model="ir.ui.view"> <field name="name">Hostel Room Categories Gantt</field> <field name="model">hostel.room...