Defining the activity view
Activities are an important part of Odoo apps. They are used to schedule to-do actions for different business objects. The activity
view helps you to see the statuses and schedules of all activities on the model.
Getting ready
In our example, we will continue using the my_project
module from the previous recipe. We will create a new activity
view for the tasks of the project.
How to do it...
- Define a
gantt
view for thetask
model as follow:<record id="view_project_tasks_activity" model="ir.ui.view"> Â Â Â Â <field name="name">project task activity</field> Â Â Â Â <field name="model">project.task</field> Â Â Â Â <field name="arch" type="xml"> Â Â Â Â Â Â Â Â <activity string="Tasks"> Â Â Â Â Â Â Â Â Â Â Â ...