Skip to content

Commit 2055777

Browse files
committed
[IMP] report_substitute: pre-commit auto fixes
1 parent 7e10470 commit 2055777

13 files changed

+46
-54
lines changed

report_substitute/README.rst

+19-23
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ Report Substitute
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
20-
:target: https://github.com/OCA/reporting-engine/tree/16.0/report_substitute
20+
:target: https://github.com/OCA/reporting-engine/tree/17.0/report_substitute
2121
:alt: OCA/reporting-engine
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_substitute
23+
:target: https://translation.odoo-community.org/projects/reporting-engine-17-0/reporting-engine-17-0-report_substitute
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=17.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

3131
This module allows you to create substitution rules for report actions.
32-
A typical use case is to replace a standard report by alternative reports
33-
when some conditions are met. For instance, it allows to configure alternate
34-
reports for different companies.
32+
A typical use case is to replace a standard report by alternative
33+
reports when some conditions are met. For instance, it allows to
34+
configure alternate reports for different companies.
3535

3636
**Table of contents**
3737

@@ -43,50 +43,46 @@ Usage
4343

4444
To use this module, you need to:
4545

46-
#. Go to 'Actions' / 'Reports'
47-
48-
#. Select the desired report you want to 'Substitution Rules'
49-
50-
#. In the substitutions page add a new line
51-
52-
#. Select the substitution report action
53-
54-
#. Set a domain to specify when this substitution should happen
55-
46+
1. Go to 'Actions' / 'Reports'
47+
2. Select the desired report you want to 'Substitution Rules'
48+
3. In the substitutions page add a new line
49+
4. Select the substitution report action
50+
5. Set a domain to specify when this substitution should happen
5651

5752
When a user calls a report action, the system tries to find the first
5853
substitution in with a domain that matches all records.
5954

6055
Known issues / Roadmap
6156
======================
6257

63-
- The document name result should take the name of the substitution report.
58+
- The document name result should take the name of the substitution
59+
report.
6460

6561
Bug Tracker
6662
===========
6763

6864
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
6965
In case of trouble, please check there if your issue has already been reported.
7066
If you spotted it first, help us to smash it by providing a detailed and welcomed
71-
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_substitute%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
67+
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_substitute%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
7268

7369
Do not contact contributors directly about support or help with technical issues.
7470

7571
Credits
7672
=======
7773

7874
Authors
79-
~~~~~~~
75+
-------
8076

8177
* ACSONE SA/NV
8278

8379
Contributors
84-
~~~~~~~~~~~~
80+
------------
8581

86-
* Bejaoui Souheil <souheil.bejaoui@acsone.eu>
82+
- Bejaoui Souheil <souheil.bejaoui@acsone.eu>
8783

8884
Maintainers
89-
~~~~~~~~~~~
85+
-----------
9086

9187
This module is maintained by the OCA.
9288

@@ -106,6 +102,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
106102

107103
|maintainer-sbejaoui|
108104

109-
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/16.0/report_substitute>`_ project on GitHub.
105+
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/17.0/report_substitute>`_ project on GitHub.
110106

111107
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

report_substitute/models/ir_actions_report.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class IrActionReport(models.Model):
9-
109
_inherit = "ir.actions.report"
1110

1211
action_report_substitution_rule_ids = fields.One2many(

report_substitute/models/ir_actions_report_substitution_rule.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class ActionsReportSubstitutionRule(models.Model):
9-
109
_name = "ir.actions.report.substitution.rule"
1110
_description = "Action Report Substitution Rule"
1211
_order = "sequence ASC"

report_substitute/models/mail_thread.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class MailThread(models.AbstractModel):
8-
98
_inherit = "mail.thread"
109

1110
def message_post_with_template(self, template_id, **kwargs):

report_substitute/pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Bejaoui Souheil \<<souheil.bejaoui@acsone.eu>\>

report_substitute/readme/CONTRIBUTORS.rst

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
This module allows you to create substitution rules for report actions.
2-
A typical use case is to replace a standard report by alternative reports
3-
when some conditions are met. For instance, it allows to configure alternate
4-
reports for different companies.
2+
A typical use case is to replace a standard report by alternative
3+
reports when some conditions are met. For instance, it allows to
4+
configure alternate reports for different companies.
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
- The document name result should take the name of the substitution report.
1+
- The document name result should take the name of the substitution
2+
report.

report_substitute/readme/USAGE.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
To use this module, you need to:
2+
3+
1. Go to 'Actions' / 'Reports'
4+
2. Select the desired report you want to 'Substitution Rules'
5+
3. In the substitutions page add a new line
6+
4. Select the substitution report action
7+
5. Set a domain to specify when this substitution should happen
8+
9+
When a user calls a report action, the system tries to find the first
10+
substitution in with a domain that matches all records.

report_substitute/readme/USAGE.rst

-15
This file was deleted.

report_substitute/static/description/index.html

+8-7
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,11 @@ <h1 class="title">Report Substitute</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:a65b073e96252a792bc139ca89648ed4ac6c9b09560f8c46add57f9a50a856f7
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" 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 image-reference" 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 image-reference" href="https://github.com/OCA/reporting-engine/tree/16.0/report_substitute"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_substitute"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" 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 image-reference" 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 image-reference" href="https://github.com/OCA/reporting-engine/tree/17.0/report_substitute"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/reporting-engine-17-0/reporting-engine-17-0-report_substitute"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module allows you to create substitution rules for report actions.
374-
A typical use case is to replace a standard report by alternative reports
375-
when some conditions are met. For instance, it allows to configure alternate
376-
reports for different companies.</p>
374+
A typical use case is to replace a standard report by alternative
375+
reports when some conditions are met. For instance, it allows to
376+
configure alternate reports for different companies.</p>
377377
<p><strong>Table of contents</strong></p>
378378
<div class="contents local topic" id="contents">
379379
<ul class="simple">
@@ -404,15 +404,16 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
404404
<div class="section" id="known-issues-roadmap">
405405
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
406406
<ul class="simple">
407-
<li>The document name result should take the name of the substitution report.</li>
407+
<li>The document name result should take the name of the substitution
408+
report.</li>
408409
</ul>
409410
</div>
410411
<div class="section" id="bug-tracker">
411412
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
412413
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/reporting-engine/issues">GitHub Issues</a>.
413414
In case of trouble, please check there if your issue has already been reported.
414415
If you spotted it first, help us to smash it by providing a detailed and welcomed
415-
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_substitute%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
416+
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_substitute%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
416417
<p>Do not contact contributors directly about support or help with technical issues.</p>
417418
</div>
418419
<div class="section" id="credits">
@@ -438,7 +439,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
438439
promote its widespread use.</p>
439440
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
440441
<p><a class="reference external image-reference" href="https://github.com/sbejaoui"><img alt="sbejaoui" src="https://github.com/sbejaoui.png?size=40px" /></a></p>
441-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/16.0/report_substitute">OCA/reporting-engine</a> project on GitHub.</p>
442+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/17.0/report_substitute">OCA/reporting-engine</a> project on GitHub.</p>
442443
<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>
443444
</div>
444445
</div>

report_substitute/wizards/mail_compose_message.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class MailComposeMessage(models.TransientModel):
8-
98
_inherit = "mail.compose.message"
109

1110
@api.onchange("template_id")

0 commit comments

Comments
 (0)