Creating interactive Kanban cards
Kanban cards support all HTML tags, which means you can design them however you like. Odoo provides some built-in ways to make Kanban cards more interactive. In this recipe, we will add color options, the star widget, and many2many
tags to the Kanban card.
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 create an attractive Kanban card:
- Add a new model to manage the tags for the
hostel.room
model, as follows:class HostelAmenities(models.Model): Â Â Â Â _name = "hostel.amenities" Â Â Â Â _description = "Hostel Amenities" Â Â Â Â name = fields.Char("Name", help="Provided Hostel Amenity") Â Â Â Â active = fields.Boolean("Active", default=True, Â Â Â Â Â Â Â Â help="Activate/Deactivate whether the amenity...