[12.0][IMP] kpi_dashboard: Add demo data and testing

This commit is contained in:
Enric Tobella
2020-04-28 18:01:19 +02:00
parent 3ca213d3e0
commit 85595af9a8
7 changed files with 368 additions and 13 deletions

View File

@@ -45,6 +45,18 @@ Configure KPIs
#. Meter: result must contain `value`, `min` and `max`
#. Graph: result must contain a list on `graphs` containing `values`, `title` and `key`
#. In order to compute the KPI you can use a predefined function from a model or
use the code to directly compute it.
Using KPI with code
~~~~~~~~~~~~~~~~~~~
Define the code directly on the code field. You can use:
* `self` and `model` as the kpi element
* The script should create a variable called `result` as a dictionary that
will be stored as the value
Configure dashboards
~~~~~~~~~~~~~~~~~~~~