Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 96 |
Technical Name |
od_progressbar_color |
License | LGPL-3 |
Website | https://github.com/aadilakbar |
Versions | 14.0 15.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 96 |
Technical Name |
od_progressbar_color |
License | LGPL-3 |
Website | https://github.com/aadilakbar |
Versions | 14.0 15.0 |
Color your progress bar as you want
Following are the ways possible to color your progress bar:
- Standard
- Reverted (reverted colors from standard configuration)
- Custom (ranges for red, green, orange)
Standard Coloring
For standard coloring, just use the widget="od_progressbar_color" in your field definition.
Reverted Coloring
For reverted coloring, use the widget="od_progressbar_color" and "revert_pg_color"=True in your field definition
and it will revert the colors defined for standard coloring.
Custom Coloring
For custom coloring, use the widget="od_progressbar_color" and
"custom_pg_percentages"{
'danger': [65, 100],
'warning': [35, 65],
'success': [0, 35]
}
in your field definition.
Here, danger=red, warning=orange, and success=green
Reverted Custom Coloring
For reverted custom coloring, use the widget="od_progressbar_color" and "revert_pg_color"=True
"custom_pg_percentages"{
'danger': [65, 100],
'warning': [35, 65],
'success': [0, 35]
}
in your field definition, and it will revert the above custom progress bar colors.
For any queries, please feel free to contact me at my email: adilak389@gmail.com
Please log in to comment on this module