Managing activities from a Kanban card
Odoo uses activities to schedule actions on records. These activities can be managed in the form view and the Kanban view. In this recipe, we will learn how to manage activities from the Kanban view card. We will add an activity widget to the cards of the rooms Kanban.
Getting started
For this recipe, we will be using the my_hostel
module from the previous recipe.
How to do it...
Follow these steps to add and manage activity from the Kanban view:
- Add mail dependencies to the
manifest
file:'depends': ['base', 'mail'],
- Inherit an activity mixin in the
hostel.room
model:class HostelRoom(models.Model): _name = "hostel.room" _description = "Hostel Room Information" _rec_name = "room_no" _inherit = ['mail.thread', 'mail.activity.mixin']
- Add the
activity_state...