-
-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by dreispt
- Loading branch information
Showing
104 changed files
with
37,040 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
========================= | ||
Key Performance Indicator | ||
========================= | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github | ||
:target: https://github.com/OCA/reporting-engine/tree/12.0/kpi | ||
:alt: OCA/reporting-engine | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-kpi | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/143/12.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module provides the basis for creating key performance indicators, | ||
including static and dynamic thresholds (SQL query or Python code), | ||
on local and remote data sources. | ||
|
||
The module also provides the mecanism to update KPIs automatically. | ||
A scheduler is executed every hour and updates the KPI values, based | ||
on the periodicity of each KPI. KPI computation can also be done | ||
manually. | ||
|
||
A threshold is a list of ranges and a range is: | ||
|
||
* a name (like Good, Warning, Bad) | ||
* a minimum value (fixed, sql query or python code) | ||
* a maximum value (fixed, sql query or python code) | ||
* color (RGB code like #00FF00 for green, #FFA500 for orange, #FF0000 for red) | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
Example of usage: | ||
https://www.youtube.com/watch?v=OC4-y2klzIk | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us smashing it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20kpi%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Savoir-faire Linux | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Daniel Reis <[email protected]> | ||
* Glen Dromgoole <[email protected]> | ||
* Loic Lacroix <[email protected]> | ||
* Sandy Carter <[email protected]> | ||
* Gervais Naoussi <[email protected]> | ||
* Iván Todorovich <[email protected]> | ||
* Adrià Gil <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
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. | ||
|
||
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/12.0/kpi>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright 2012 - Now Savoir-faire Linux <https://www.savoirfairelinux.com/> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Key Performance Indicator", | ||
"version": "13.0.1.0.0", | ||
"author": "Savoir-faire Linux,Odoo Community Association (OCA)", | ||
"website": "http://www.savoirfairelinux.com", | ||
"license": "AGPL-3", | ||
"category": "Report", | ||
"depends": ["base_external_dbsource"], | ||
"data": [ | ||
"security/kpi_security.xml", | ||
"security/ir.model.access.csv", | ||
"views/kpi_category_views.xml", | ||
"views/kpi_history_views.xml", | ||
"views/kpi_threshold_range_views.xml", | ||
"views/kpi_threshold_views.xml", | ||
"views/kpi_views.xml", | ||
"views/menu.xml", | ||
"data/kpi_data.xml", | ||
], | ||
"images": [ | ||
"images/kpi_definition.png", | ||
"images/kpi_computation.png", | ||
"images/kpi_threshold.png", | ||
"images/kpi_range.png", | ||
], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2012 - Now Savoir-faire Linux <https://www.savoirfairelinux.com/> | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
<odoo noupdate="1"> | ||
<record forcecreate="True" id="ir_cron_kpi_action" model="ir.cron"> | ||
<field name="name">Update KPI values</field> | ||
<field name="user_id" ref="base.user_root" /> | ||
<field name="interval_number">1</field> | ||
<field name="interval_type">hours</field> | ||
<field name="numbercall">-1</field> | ||
<field name="doall" eval="False" /> | ||
<field name="model_id" ref="model_kpi" /> | ||
<field name="state">code</field> | ||
<field name="code">model.update_kpi_value()</field> | ||
</record> | ||
</odoo> |
Oops, something went wrong.