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_library
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
library.book.rent
model, as follows:class LibraryRentTags(models.Model): _name = 'library.rent.tag' name = fields.Char() color = fields.Integer()
- Add basic access rights for the
library.rent.tag
model, as follows:acl_book_rent_tags,library.book_rent_tags_default,model_library_rent_tag,,1,0,0,0 acl_book_rent_librarian_tags,library.book_rent_tags_librarian,model_library_rent_tag,group_librarian...