From cebfe2a5534fbd4c23790723115a534239a5d810 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 30 Apr 2020 10:28:14 +0000 Subject: [PATCH] [UPD] README.rst --- kpi_dashboard/README.rst | 20 +++++++++++++++----- kpi_dashboard/static/description/index.html | 19 ++++++++++++------- 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/kpi_dashboard/README.rst b/kpi_dashboard/README.rst index db74bc80..a8dc09cf 100644 --- a/kpi_dashboard/README.rst +++ b/kpi_dashboard/README.rst @@ -51,12 +51,14 @@ Configure KPIs 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 +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. +For example, we can use:: + result = {} + result['value'] = len(model.search([('id', '=', %s)])) + result['previous'] = len(model.search([('id', '!=', %s)])) Configure dashboards ~~~~~~~~~~~~~~~~~~~~ @@ -103,6 +105,14 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. +.. |maintainer-etobella| image:: https://github.com/etobella.png?size=40px + :target: https://github.com/etobella + :alt: etobella + +Current `maintainer `__: + +|maintainer-etobella| + This module is part of the `OCA/reporting-engine `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/kpi_dashboard/static/description/index.html b/kpi_dashboard/static/description/index.html index bde4304d..09f8b1f9 100644 --- a/kpi_dashboard/static/description/index.html +++ b/kpi_dashboard/static/description/index.html @@ -3,7 +3,7 @@ - + Kpi Dashboard