Skip to content

Commit 1c74107

Browse files
committed
[FIX] web_pivot_computed_measure: Fix Pre-commit check
1 parent 9ec51b7 commit 1c74107

15 files changed

Lines changed: 155 additions & 130 deletions

File tree

web_pivot_computed_measure/README.rst

Lines changed: 46 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Web Pivot Computed Measure
2020
:target: https://github.com/OCA/web/tree/17.0/web_pivot_computed_measure
2121
:alt: OCA/web
2222
.. |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
23+
:target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_pivot_computed_measure
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
2626
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0
@@ -38,37 +38,48 @@ Adds support for computed measures on the pivot view.
3838
Usage
3939
=====
4040

41-
Go to pivot view and click on the "Measures" menu, you will see
42-
a new option called 'Computed Measure'.
41+
Go to pivot view and click on the "Measures" menu, you will see a new
42+
option called 'Computed Measure'.
4343

4444
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'.
45+
46+
- Measure 1: Used in 'operation formula' as 'm1'
47+
48+
- Measure 2: Used in 'operation formula' as 'm2'
49+
50+
- Operation: The formula
51+
52+
- Sum: m1 + m2
53+
- Sub: m1 - m2
54+
- Mult: m1 \* m2
55+
- Div: m1 / m2 (Format: Float)
56+
- Perc m1 / m2 (Format: Percentage)
57+
- Custom: Special option only visible in debug mode to write a custom
58+
formula.
59+
60+
- Name: The name of the new measure (emtpy = auto-generated)
61+
62+
- Format: How will the value be printed
63+
64+
- Integer
65+
- Float
66+
- Percentage (value \* 100)
67+
68+
- | Formula\*: Custom operation formula
69+
| These formula is evaluated using 'PY.eval'
70+
71+
These computed measures can be mixed (You can reuse it to make new
72+
computed measures) and saved as favorites.
73+
74+
Notice that "measures/computed measures" involved in an active 'computed
75+
measure' can't be deactivated until you have deactivate the 'computed
76+
measure'.
6677

6778
Known issues / Roadmap
6879
======================
6980

70-
#. Add support to define a style for a computed measure (ex. colored)
71-
#. Use t-model to data-binding instead of jquery selectors
81+
1. Add support to define a style for a computed measure (ex. colored)
82+
2. Use t-model to data-binding instead of jquery selectors
7283

7384
Bug Tracker
7485
===========
@@ -84,26 +95,26 @@ Credits
8495
=======
8596

8697
Authors
87-
~~~~~~~
98+
-------
8899

89100
* Tecnativa
90101

91102
Contributors
92-
~~~~~~~~~~~~
103+
------------
93104

94-
* `Tecnativa <https://www.tecnativa.com/>`_:
105+
- `Tecnativa <https://www.tecnativa.com/>`__:
95106

96-
* Alexandre D. Díaz
97-
* Pedro M. Baeza
98-
* Ernesto Tejeda
99-
* Carlos Roca
107+
- Alexandre D. Díaz
108+
- Pedro M. Baeza
109+
- Ernesto Tejeda
110+
- Carlos Roca
100111

101-
* `TradeSolutions.Digital GmbH <https://www.tradesolutions.digital/>`_:
112+
- `TradeSolutions.Digital GmbH <https://www.tradesolutions.digital/>`_:
102113

103114
* Mitul Shah
104115

105116
Maintainers
106-
~~~~~~~~~~~
117+
-----------
107118

108119
This module is maintained by the OCA.
109120

web_pivot_computed_measure/__init__.py

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
- [Tecnativa](https://www.tecnativa.com/):
2+
- Alexandre D. Díaz
3+
- Pedro M. Baeza
4+
- Ernesto Tejeda
5+
- Carlos Roca
6+
- [TradeSolutions.Digital GmbH](https://www.tradesolutions.digital/):
7+
- Mitul Shah

web_pivot_computed_measure/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
1. Add support to define a style for a computed measure (ex. colored)
2+
2. Use t-model to data-binding instead of jquery selectors

web_pivot_computed_measure/readme/ROADMAP.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Go to pivot view and click on the "Measures" menu, you will see a new
2+
option called 'Computed Measure'.
3+
4+
You have the follow options to create a 'computed measure':
5+
- Measure 1: Used in 'operation formula' as 'm1'
6+
7+
- Measure 2: Used in 'operation formula' as 'm2'
8+
9+
- Operation: The formula
10+
- Sum: m1 + m2
11+
- Sub: m1 - m2
12+
- Mult: m1 \* m2
13+
- Div: m1 / m2 (Format: Float)
14+
- Perc m1 / m2 (Format: Percentage)
15+
- Custom: Special option only visible in debug mode to write a custom
16+
formula.
17+
18+
- Name: The name of the new measure (emtpy = auto-generated)
19+
20+
- Format: How will the value be printed
21+
- Integer
22+
- Float
23+
- Percentage (value \* 100)
24+
25+
- Formula\*: Custom operation formula
26+
These formula is evaluated using 'PY.eval'
27+
28+
These computed measures can be mixed (You can reuse it to make new
29+
computed measures) and saved as favorites.
30+
31+
Notice that "measures/computed measures" involved in an active 'computed
32+
measure' can't be deactivated until you have deactivate the 'computed
33+
measure'.

web_pivot_computed_measure/readme/USAGE.rst

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)