OCA reporting engine fork for dev and update.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

422 lines
13 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" />
  7. <title>Key Performance Indicator</title>
  8. <style type="text/css">
  9. /*
  10. :Author: David Goodger (goodger@python.org)
  11. :Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $
  12. :Copyright: This stylesheet has been placed in the public domain.
  13. Default cascading style sheet for the HTML output of Docutils.
  14. See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
  15. customize this style sheet.
  16. */
  17. /* used to remove borders from tables and images */
  18. .borderless, table.borderless td, table.borderless th {
  19. border: 0 }
  20. table.borderless td, table.borderless th {
  21. /* Override padding for "table.docutils td" with "! important".
  22. The right padding separates the table cells. */
  23. padding: 0 0.5em 0 0 ! important }
  24. .first {
  25. /* Override more specific margin styles with "! important". */
  26. margin-top: 0 ! important }
  27. .last, .with-subtitle {
  28. margin-bottom: 0 ! important }
  29. .hidden {
  30. display: none }
  31. a.toc-backref {
  32. text-decoration: none ;
  33. color: black }
  34. blockquote.epigraph {
  35. margin: 2em 5em ; }
  36. dl.docutils dd {
  37. margin-bottom: 0.5em }
  38. object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
  39. overflow: hidden;
  40. }
  41. /* Uncomment (and remove this text!) to get bold-faced definition list terms
  42. dl.docutils dt {
  43. font-weight: bold }
  44. */
  45. div.abstract {
  46. margin: 2em 5em }
  47. div.abstract p.topic-title {
  48. font-weight: bold ;
  49. text-align: center }
  50. div.admonition, div.attention, div.caution, div.danger, div.error,
  51. div.hint, div.important, div.note, div.tip, div.warning {
  52. margin: 2em ;
  53. border: medium outset ;
  54. padding: 1em }
  55. div.admonition p.admonition-title, div.hint p.admonition-title,
  56. div.important p.admonition-title, div.note p.admonition-title,
  57. div.tip p.admonition-title {
  58. font-weight: bold ;
  59. font-family: sans-serif }
  60. div.attention p.admonition-title, div.caution p.admonition-title,
  61. div.danger p.admonition-title, div.error p.admonition-title,
  62. div.warning p.admonition-title, .code .error {
  63. color: red ;
  64. font-weight: bold ;
  65. font-family: sans-serif }
  66. /* Uncomment (and remove this text!) to get reduced vertical space in
  67. compound paragraphs.
  68. div.compound .compound-first, div.compound .compound-middle {
  69. margin-bottom: 0.5em }
  70. div.compound .compound-last, div.compound .compound-middle {
  71. margin-top: 0.5em }
  72. */
  73. div.dedication {
  74. margin: 2em 5em ;
  75. text-align: center ;
  76. font-style: italic }
  77. div.dedication p.topic-title {
  78. font-weight: bold ;
  79. font-style: normal }
  80. div.figure {
  81. margin-left: 2em ;
  82. margin-right: 2em }
  83. div.footer, div.header {
  84. clear: both;
  85. font-size: smaller }
  86. div.line-block {
  87. display: block ;
  88. margin-top: 1em ;
  89. margin-bottom: 1em }
  90. div.line-block div.line-block {
  91. margin-top: 0 ;
  92. margin-bottom: 0 ;
  93. margin-left: 1.5em }
  94. div.sidebar {
  95. margin: 0 0 0.5em 1em ;
  96. border: medium outset ;
  97. padding: 1em ;
  98. background-color: #ffffee ;
  99. width: 40% ;
  100. float: right ;
  101. clear: right }
  102. div.sidebar p.rubric {
  103. font-family: sans-serif ;
  104. font-size: medium }
  105. div.system-messages {
  106. margin: 5em }
  107. div.system-messages h1 {
  108. color: red }
  109. div.system-message {
  110. border: medium outset ;
  111. padding: 1em }
  112. div.system-message p.system-message-title {
  113. color: red ;
  114. font-weight: bold }
  115. div.topic {
  116. margin: 2em }
  117. h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
  118. h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
  119. margin-top: 0.4em }
  120. h1.title {
  121. text-align: center }
  122. h2.subtitle {
  123. text-align: center }
  124. hr.docutils {
  125. width: 75% }
  126. img.align-left, .figure.align-left, object.align-left {
  127. clear: left ;
  128. float: left ;
  129. margin-right: 1em }
  130. img.align-right, .figure.align-right, object.align-right {
  131. clear: right ;
  132. float: right ;
  133. margin-left: 1em }
  134. img.align-center, .figure.align-center, object.align-center {
  135. display: block;
  136. margin-left: auto;
  137. margin-right: auto;
  138. }
  139. .align-left {
  140. text-align: left }
  141. .align-center {
  142. clear: both ;
  143. text-align: center }
  144. .align-right {
  145. text-align: right }
  146. /* reset inner alignment in figures */
  147. div.align-right {
  148. text-align: inherit }
  149. /* div.align-center * { */
  150. /* text-align: left } */
  151. ol.simple, ul.simple {
  152. margin-bottom: 1em }
  153. ol.arabic {
  154. list-style: decimal }
  155. ol.loweralpha {
  156. list-style: lower-alpha }
  157. ol.upperalpha {
  158. list-style: upper-alpha }
  159. ol.lowerroman {
  160. list-style: lower-roman }
  161. ol.upperroman {
  162. list-style: upper-roman }
  163. p.attribution {
  164. text-align: right ;
  165. margin-left: 50% }
  166. p.caption {
  167. font-style: italic }
  168. p.credits {
  169. font-style: italic ;
  170. font-size: smaller }
  171. p.label {
  172. white-space: nowrap }
  173. p.rubric {
  174. font-weight: bold ;
  175. font-size: larger ;
  176. color: maroon ;
  177. text-align: center }
  178. p.sidebar-title {
  179. font-family: sans-serif ;
  180. font-weight: bold ;
  181. font-size: larger }
  182. p.sidebar-subtitle {
  183. font-family: sans-serif ;
  184. font-weight: bold }
  185. p.topic-title {
  186. font-weight: bold }
  187. pre.address {
  188. margin-bottom: 0 ;
  189. margin-top: 0 ;
  190. font: inherit }
  191. pre.literal-block, pre.doctest-block, pre.math, pre.code {
  192. margin-left: 2em ;
  193. margin-right: 2em }
  194. pre.code .ln { color: grey; } /* line numbers */
  195. pre.code, code { background-color: #eeeeee }
  196. pre.code .comment, code .comment { color: #5C6576 }
  197. pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
  198. pre.code .literal.string, code .literal.string { color: #0C5404 }
  199. pre.code .name.builtin, code .name.builtin { color: #352B84 }
  200. pre.code .deleted, code .deleted { background-color: #DEB0A1}
  201. pre.code .inserted, code .inserted { background-color: #A3D289}
  202. span.classifier {
  203. font-family: sans-serif ;
  204. font-style: oblique }
  205. span.classifier-delimiter {
  206. font-family: sans-serif ;
  207. font-weight: bold }
  208. span.interpreted {
  209. font-family: sans-serif }
  210. span.option {
  211. white-space: nowrap }
  212. span.pre {
  213. white-space: pre }
  214. span.problematic {
  215. color: red }
  216. span.section-subtitle {
  217. /* font-size relative to parent (h1..h6 element) */
  218. font-size: 80% }
  219. table.citation {
  220. border-left: solid 1px gray;
  221. margin-left: 1px }
  222. table.docinfo {
  223. margin: 2em 4em }
  224. table.docutils {
  225. margin-top: 0.5em ;
  226. margin-bottom: 0.5em }
  227. table.footnote {
  228. border-left: solid 1px black;
  229. margin-left: 1px }
  230. table.docutils td, table.docutils th,
  231. table.docinfo td, table.docinfo th {
  232. padding-left: 0.5em ;
  233. padding-right: 0.5em ;
  234. vertical-align: top }
  235. table.docutils th.field-name, table.docinfo th.docinfo-name {
  236. font-weight: bold ;
  237. text-align: left ;
  238. white-space: nowrap ;
  239. padding-left: 0 }
  240. /* "booktabs" style (no vertical lines) */
  241. table.docutils.booktabs {
  242. border: 0px;
  243. border-top: 2px solid;
  244. border-bottom: 2px solid;
  245. border-collapse: collapse;
  246. }
  247. table.docutils.booktabs * {
  248. border: 0px;
  249. }
  250. table.docutils.booktabs th {
  251. border-bottom: thin solid;
  252. text-align: left;
  253. }
  254. h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
  255. h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
  256. font-size: 100% }
  257. ul.auto-toc {
  258. list-style-type: none }
  259. </style>
  260. </head>
  261. <body>
  262. <div class="document" id="key-performance-indicator">
  263. <h1 class="title">Key Performance Indicator</h1>
  264. <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  265. !! This file is generated by oca-gen-addon-readme !!
  266. !! changes will be overwritten. !!
  267. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
  268. <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/12.0/kpi"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-kpi"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/143/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
  269. <p>This module provides the basis for creating key performance indicators,
  270. including static and dynamic thresholds (SQL query or Python code),
  271. on local and remote data sources.</p>
  272. <p>The module also provides the mecanism to update KPIs automatically.
  273. A scheduler is executed every hour and updates the KPI values, based
  274. on the periodicity of each KPI. KPI computation can also be done
  275. manually.</p>
  276. <p>A threshold is a list of ranges and a range is:</p>
  277. <ul class="simple">
  278. <li>a name (like Good, Warning, Bad)</li>
  279. <li>a minimum value (fixed, sql query or python code)</li>
  280. <li>a maximum value (fixed, sql query or python code)</li>
  281. <li>color (RGB code like #00FF00 for green, #FFA500 for orange, #FF0000 for red)</li>
  282. </ul>
  283. <p><strong>Table of contents</strong></p>
  284. <div class="contents local topic" id="contents">
  285. <ul class="simple">
  286. <li><a class="reference internal" href="#usage" id="id1">Usage</a></li>
  287. <li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
  288. <li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
  289. <li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
  290. <li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
  291. <li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
  292. </ul>
  293. </li>
  294. </ul>
  295. </div>
  296. <div class="section" id="usage">
  297. <h1><a class="toc-backref" href="#id1">Usage</a></h1>
  298. <p>Example of usage:
  299. <a class="reference external" href="https://www.youtube.com/watch?v=OC4-y2klzIk">https://www.youtube.com/watch?v=OC4-y2klzIk</a></p>
  300. </div>
  301. <div class="section" id="bug-tracker">
  302. <h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
  303. <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/reporting-engine/issues">GitHub Issues</a>.
  304. In case of trouble, please check there if your issue has already been reported.
  305. If you spotted it first, help us smashing it by providing a detailed and welcomed
  306. <a class="reference external" href="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**">feedback</a>.</p>
  307. <p>Do not contact contributors directly about support or help with technical issues.</p>
  308. </div>
  309. <div class="section" id="credits">
  310. <h1><a class="toc-backref" href="#id3">Credits</a></h1>
  311. <div class="section" id="authors">
  312. <h2><a class="toc-backref" href="#id4">Authors</a></h2>
  313. <ul class="simple">
  314. <li>Savoir-faire Linux</li>
  315. </ul>
  316. </div>
  317. <div class="section" id="contributors">
  318. <h2><a class="toc-backref" href="#id5">Contributors</a></h2>
  319. <ul class="simple">
  320. <li>Daniel Reis &lt;<a class="reference external" href="mailto:dreis.pt&#64;hotmail.com">dreis.pt&#64;hotmail.com</a>&gt;</li>
  321. <li>Glen Dromgoole &lt;<a class="reference external" href="mailto:gdromgoole&#64;tier1engineering.com">gdromgoole&#64;tier1engineering.com</a>&gt;</li>
  322. <li>Loic Lacroix &lt;<a class="reference external" href="mailto:loic.lacroix&#64;savoirfairelinux.com">loic.lacroix&#64;savoirfairelinux.com</a>&gt;</li>
  323. <li>Sandy Carter &lt;<a class="reference external" href="mailto:sandy.carter&#64;savoirfairelinux.com">sandy.carter&#64;savoirfairelinux.com</a>&gt;</li>
  324. <li>Gervais Naoussi &lt;<a class="reference external" href="mailto:gervaisnaoussi&#64;gmail.com">gervaisnaoussi&#64;gmail.com</a>&gt;</li>
  325. <li>Iván Todorovich &lt;<a class="reference external" href="mailto:ivan.todorovich&#64;gmail.com">ivan.todorovich&#64;gmail.com</a>&gt;</li>
  326. <li>Adrià Gil &lt;<a class="reference external" href="mailto:adria.gil&#64;eficent.com">adria.gil&#64;eficent.com</a>&gt;</li>
  327. </ul>
  328. </div>
  329. <div class="section" id="maintainers">
  330. <h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
  331. <p>This module is maintained by the OCA.</p>
  332. <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
  333. <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
  334. mission is to support the collaborative development of Odoo features and
  335. promote its widespread use.</p>
  336. <p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/12.0/kpi">OCA/reporting-engine</a> project on GitHub.</p>
  337. <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
  338. </div>
  339. </div>
  340. </div>
  341. </body>
  342. </html>