|
| 1 | +========================== |
| 2 | +Web Pivot Computed Measure |
| 3 | +========================== |
| 4 | + |
| 5 | +.. |
| 6 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 7 | + !! This file is generated by oca-gen-addon-readme !! |
| 8 | + !! changes will be overwritten. !! |
| 9 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 10 | + !! source digest: sha256:4cef60dd775467b756ccbacb8c215bba0bc74fd32e1917c8b15c3be9de6302a1 |
| 11 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 12 | +
|
| 13 | +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png |
| 14 | + :target: https://odoo-community.org/page/development-status |
| 15 | + :alt: Beta |
| 16 | +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png |
| 17 | + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
| 18 | + :alt: License: AGPL-3 |
| 19 | +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github |
| 20 | + :target: https://github.com/OCA/web/tree/17.0/web_pivot_computed_measure |
| 21 | + :alt: OCA/web |
| 22 | +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png |
| 23 | + :target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_pivot_computed_measure |
| 24 | + :alt: Translate me on Weblate |
| 25 | +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png |
| 26 | + :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0 |
| 27 | + :alt: Try me on Runboat |
| 28 | + |
| 29 | +|badge1| |badge2| |badge3| |badge4| |badge5| |
| 30 | + |
| 31 | +Adds support for computed measures on the pivot view. |
| 32 | + |
| 33 | +**Table of contents** |
| 34 | + |
| 35 | +.. contents:: |
| 36 | + :local: |
| 37 | + |
| 38 | +Usage |
| 39 | +===== |
| 40 | + |
| 41 | +Go to pivot view and click on the "Measures" menu, you will see |
| 42 | +a new option called 'Computed Measure'. |
| 43 | + |
| 44 | +You have the follow options to create a 'computed measure': |
| 45 | + - Measure 1: Used in 'operation formula' as 'm1' |
| 46 | + - Measure 2: Used in 'operation formula' as 'm2' |
| 47 | + - Operation: The formula |
| 48 | + - Sum: m1 + m2 |
| 49 | + - Sub: m1 - m2 |
| 50 | + - Mult: m1 * m2 |
| 51 | + - Div: m1 / m2 (Format: Float) |
| 52 | + - Perc m1 / m2 (Format: Percentage) |
| 53 | + - Custom: Special option only visible in debug mode to write a custom formula. |
| 54 | + - Name: The name of the new measure (emtpy = auto-generated) |
| 55 | + - Format: How will the value be printed |
| 56 | + - Integer |
| 57 | + - Float |
| 58 | + - Percentage (value * 100) |
| 59 | + - Formula*: Custom operation formula |
| 60 | + These formula is evaluated using 'PY.eval' |
| 61 | + |
| 62 | +These computed measures can be mixed (You can reuse it to make new computed measures) and saved as favorites. |
| 63 | + |
| 64 | +Notice that "measures/computed measures" involved in an active 'computed measure' |
| 65 | +can't be deactivated until you have deactivate the 'computed measure'. |
| 66 | + |
| 67 | +Known issues / Roadmap |
| 68 | +====================== |
| 69 | + |
| 70 | +#. Add support to define a style for a computed measure (ex. colored) |
| 71 | +#. Use t-model to data-binding instead of jquery selectors |
| 72 | + |
| 73 | +Bug Tracker |
| 74 | +=========== |
| 75 | + |
| 76 | +Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_. |
| 77 | +In case of trouble, please check there if your issue has already been reported. |
| 78 | +If you spotted it first, help us to smash it by providing a detailed and welcomed |
| 79 | +`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_pivot_computed_measure%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. |
| 80 | + |
| 81 | +Do not contact contributors directly about support or help with technical issues. |
| 82 | + |
| 83 | +Credits |
| 84 | +======= |
| 85 | + |
| 86 | +Authors |
| 87 | +~~~~~~~ |
| 88 | + |
| 89 | +* Tecnativa |
| 90 | + |
| 91 | +Contributors |
| 92 | +~~~~~~~~~~~~ |
| 93 | + |
| 94 | +* `Tecnativa <https://www.tecnativa.com/>`_: |
| 95 | + |
| 96 | + * Alexandre D. Díaz |
| 97 | + * Pedro M. Baeza |
| 98 | + * Ernesto Tejeda |
| 99 | + * Carlos Roca |
| 100 | + |
| 101 | +* `TradeSolutions.Digital GmbH <https://www.tradesolutions.digital/>`_: |
| 102 | + |
| 103 | + * Mitul Shah |
| 104 | + |
| 105 | +Maintainers |
| 106 | +~~~~~~~~~~~ |
| 107 | + |
| 108 | +This module is maintained by the OCA. |
| 109 | + |
| 110 | +.. image:: https://odoo-community.org/logo.png |
| 111 | + :alt: Odoo Community Association |
| 112 | + :target: https://odoo-community.org |
| 113 | + |
| 114 | +OCA, or the Odoo Community Association, is a nonprofit organization whose |
| 115 | +mission is to support the collaborative development of Odoo features and |
| 116 | +promote its widespread use. |
| 117 | + |
| 118 | +.. |maintainer-CarlosRoca13| image:: https://github.com/CarlosRoca13.png?size=40px |
| 119 | + :target: https://github.com/CarlosRoca13 |
| 120 | + :alt: CarlosRoca13 |
| 121 | + |
| 122 | +Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: |
| 123 | + |
| 124 | +|maintainer-CarlosRoca13| |
| 125 | + |
| 126 | +This module is part of the `OCA/web <https://github.com/OCA/web/tree/17.0/web_pivot_computed_measure>`_ project on GitHub. |
| 127 | + |
| 128 | +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
0 commit comments