Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] kpi: Migration to 16.0 #920

Open
wants to merge 27 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
76fa92f
mgmtsystem_kpi rename to kpi (#543)
naousse Dec 2, 2016
4cbe276
Increase version
ivantodorovich Dec 13, 2017
8abe4ec
Highlight invalid ranges
ivantodorovich Dec 13, 2017
fafb145
Added myself to contributors in README
ivantodorovich Dec 13, 2017
2b8fea0
Module upgrade is enough
ivantodorovich Dec 13, 2017
65e323c
Add tests
ivantodorovich Dec 18, 2017
c76a4fe
[MIG] kpi to v11
AdriaGForgeFlow Nov 12, 2018
a213400
[IMP] kpi: Add Kanban Views. Improve python code, Allow to access Odoo
etobella Nov 27, 2018
bf669e4
[kpi] allow to return kpi and color in a single call without thresholds.
JordiBForgeFlow Dec 28, 2018
6ad86f4
add periodicity in minutes
JordiBForgeFlow Dec 28, 2018
56ae12b
create kpi history as sudo
JordiBForgeFlow Jan 1, 2019
6cfde87
[12.0][MIG] Migrate module kpi to v12
AdriaGForgeFlow Jan 2, 2019
2275196
[ADD] icon.png
OCA-git-bot Sep 2, 2019
ff3747a
Translated using Weblate (Portuguese (Brazil))
Sep 2, 2019
7979cf2
Update translation files
oca-transbot Sep 23, 2019
99c1152
Translated using Weblate (Portuguese (Brazil))
Nov 24, 2019
17a7f68
[IMP] kpi: black, isort
Jun 4, 2020
bf7d211
Migration to 13.0
Jun 4, 2020
745d4b9
[UPD] Update kpi.pot
oca-travis May 15, 2021
e0411fb
[UPD] README.rst
OCA-git-bot May 15, 2021
de709f9
Apply dotfiles
sbidoul Jul 27, 2021
498721c
kpi 13.0.1.0.1
OCA-git-bot Jul 27, 2021
cf00b23
[IMP] kpi: black, isort
flachica Aug 2, 2022
576ece0
[MIG] kpi 15.0.1.0.0
flachica Aug 2, 2022
e211cc0
[IMP] kpi: pre-commit execution
matiasperalta1 Aug 19, 2024
6e2b57c
[MIG] kpi: Migration to 16.0
matiasperalta1 Aug 19, 2024
a087f91
[REF] kpi: module reformed and adapted to new versions
matiasperalta1 Aug 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 103 additions & 0 deletions kpi/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
=========================
Key Performance Indicator
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f2f7da4bfc28a23141b5ab096adbbf7a798b2454d9a9804a4152d21bcbb79f1f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/16.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-16-0/reporting-engine-16-0-kpi
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=16.0
:alt: Try me on Runboat

|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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20kpi%0Aversion:%2016.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]>
* Fernando La Chica <[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/16.0/kpi>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions kpi/__init__.py
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
26 changes: 26 additions & 0 deletions kpi/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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": "16.0.1.0.0",
"author": "Savoir-faire Linux,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/reporting-engine",
"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_views.xml",
"views/menu.xml",
"data/kpi_data.xml",
],
"images": [
"images/kpi_definition.png",
"images/kpi_computation.png",
],
"installable": True,
}
16 changes: 16 additions & 0 deletions kpi/data/kpi_data.xml
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>
Loading
Loading