Adding a progress bar in 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 field named popularity
.
Getting started
For this recipe, we will be using the my_library
module from the previous recipe.
How to do it...
In order 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 prior to that will not display column progress bars.
Restart the server and update the module...