Adding a progress bar to Kanban views
Sometimes, you have tons of records in columns and it is very difficult to get a clear picture of the particular stages. A progress bar can be used to display the status of any column. In this recipe, we will display a progress bar on Kanban based on the popularity
field.
Getting started
For this recipe, we will be using the my_hostel
module from the previous recipe.
How to do it...
To add a progress bar to the Kanban columns, you will need to add a progressbar
tag to the Kanban view definition, as follows:
<progressbar field="popularity" colors='{"low": "success", "medium": "warning", "high": "danger"}'/>
Note that Kanban column progress bars were introduced in Odoo version 11. Versions before that will not display column progress bars.
Restart the server and update the module to apply the changes...