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_hostel
module from the previous recipe. We will create a new activity
view for the hostel room category.
How to do it...
- Define a
activity
view for thehostel room category
model as follows:<record id="hostel_room_category_view_activity" model="ir.ui.view"> Â Â Â Â <field name="name">Hostel Room Categories Activity</field> Â Â Â Â <field name="model">hostel.room.category</field> Â Â Â Â <field name="arch" type="xml"> Â Â Â Â Â Â Â Â <activity string="Hostel Room Category"> Â Â ...