diff --git a/report_substitute/README.rst b/report_substitute/README.rst
index 10504fa24..5852ab72c 100644
--- a/report_substitute/README.rst
+++ b/report_substitute/README.rst
@@ -17,21 +17,21 @@ Report Substitute
: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/report_substitute
+ :target: https://github.com/OCA/reporting-engine/tree/17.0/report_substitute
: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-report_substitute
+ :target: https://translation.odoo-community.org/projects/reporting-engine-17-0/reporting-engine-17-0-report_substitute
: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
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=17.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
This module allows you to create substitution rules for report actions.
-A typical use case is to replace a standard report by alternative reports
-when some conditions are met. For instance, it allows to configure alternate
-reports for different companies.
+A typical use case is to replace a standard report by alternative
+reports when some conditions are met. For instance, it allows to
+configure alternate reports for different companies.
**Table of contents**
@@ -43,16 +43,11 @@ Usage
To use this module, you need to:
-#. Go to 'Actions' / 'Reports'
-
-#. Select the desired report you want to 'Substitution Rules'
-
-#. In the substitutions page add a new line
-
-#. Select the substitution report action
-
-#. Set a domain to specify when this substitution should happen
-
+1. Go to 'Actions' / 'Reports'
+2. Select the desired report you want to 'Substitution Rules'
+3. In the substitutions page add a new line
+4. Select the substitution report action
+5. Set a domain to specify when this substitution should happen
When a user calls a report action, the system tries to find the first
substitution in with a domain that matches all records.
@@ -60,7 +55,8 @@ substitution in with a domain that matches all records.
Known issues / Roadmap
======================
-- The document name result should take the name of the substitution report.
+- The document name result should take the name of the substitution
+ report.
Bug Tracker
===========
@@ -68,7 +64,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -76,17 +72,17 @@ Credits
=======
Authors
-~~~~~~~
+-------
* ACSONE SA/NV
Contributors
-~~~~~~~~~~~~
+------------
-* Bejaoui Souheil
+- Bejaoui Souheil
Maintainers
-~~~~~~~~~~~
+-----------
This module is maintained by the OCA.
@@ -106,6 +102,6 @@ Current `maintainer `__:
|maintainer-sbejaoui|
-This module is part of the `OCA/reporting-engine `_ project on GitHub.
+This module is part of the `OCA/reporting-engine `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/report_substitute/models/ir_actions_report.py b/report_substitute/models/ir_actions_report.py
index 47ea0a3b1..ecd1e368b 100644
--- a/report_substitute/models/ir_actions_report.py
+++ b/report_substitute/models/ir_actions_report.py
@@ -6,7 +6,6 @@ from odoo.tools.safe_eval import safe_eval
class IrActionReport(models.Model):
-
_inherit = "ir.actions.report"
action_report_substitution_rule_ids = fields.One2many(
diff --git a/report_substitute/models/ir_actions_report_substitution_rule.py b/report_substitute/models/ir_actions_report_substitution_rule.py
index 7320d533f..e065b1f71 100644
--- a/report_substitute/models/ir_actions_report_substitution_rule.py
+++ b/report_substitute/models/ir_actions_report_substitution_rule.py
@@ -6,7 +6,6 @@ from odoo.exceptions import ValidationError
class ActionsReportSubstitutionRule(models.Model):
-
_name = "ir.actions.report.substitution.rule"
_description = "Action Report Substitution Rule"
_order = "sequence ASC"
diff --git a/report_substitute/models/mail_thread.py b/report_substitute/models/mail_thread.py
index 35a86ee3c..c00d466aa 100644
--- a/report_substitute/models/mail_thread.py
+++ b/report_substitute/models/mail_thread.py
@@ -5,7 +5,6 @@ from odoo import models
class MailThread(models.AbstractModel):
-
_inherit = "mail.thread"
def message_post_with_template(self, template_id, **kwargs):
diff --git a/report_substitute/pyproject.toml b/report_substitute/pyproject.toml
new file mode 100644
index 000000000..4231d0ccc
--- /dev/null
+++ b/report_substitute/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["whool"]
+build-backend = "whool.buildapi"
diff --git a/report_substitute/readme/CONTRIBUTORS.md b/report_substitute/readme/CONTRIBUTORS.md
new file mode 100644
index 000000000..ed3a7d49e
--- /dev/null
+++ b/report_substitute/readme/CONTRIBUTORS.md
@@ -0,0 +1 @@
+- Bejaoui Souheil \<\>
diff --git a/report_substitute/readme/CONTRIBUTORS.rst b/report_substitute/readme/CONTRIBUTORS.rst
deleted file mode 100644
index 35c03ffe0..000000000
--- a/report_substitute/readme/CONTRIBUTORS.rst
+++ /dev/null
@@ -1 +0,0 @@
-* Bejaoui Souheil
diff --git a/report_substitute/readme/DESCRIPTION.rst b/report_substitute/readme/DESCRIPTION.md
similarity index 53%
rename from report_substitute/readme/DESCRIPTION.rst
rename to report_substitute/readme/DESCRIPTION.md
index 55ccac5e8..c3a7f71a4 100644
--- a/report_substitute/readme/DESCRIPTION.rst
+++ b/report_substitute/readme/DESCRIPTION.md
@@ -1,4 +1,4 @@
This module allows you to create substitution rules for report actions.
-A typical use case is to replace a standard report by alternative reports
-when some conditions are met. For instance, it allows to configure alternate
-reports for different companies.
+A typical use case is to replace a standard report by alternative
+reports when some conditions are met. For instance, it allows to
+configure alternate reports for different companies.
diff --git a/report_substitute/readme/ROADMAP.rst b/report_substitute/readme/ROADMAP.md
similarity index 82%
rename from report_substitute/readme/ROADMAP.rst
rename to report_substitute/readme/ROADMAP.md
index 28e27a3ea..d1fc8d26e 100644
--- a/report_substitute/readme/ROADMAP.rst
+++ b/report_substitute/readme/ROADMAP.md
@@ -1 +1,2 @@
-- The document name result should take the name of the substitution report.
+- The document name result should take the name of the substitution
+ report.
diff --git a/report_substitute/readme/USAGE.md b/report_substitute/readme/USAGE.md
new file mode 100644
index 000000000..5d0d46709
--- /dev/null
+++ b/report_substitute/readme/USAGE.md
@@ -0,0 +1,10 @@
+To use this module, you need to:
+
+1. Go to 'Actions' / 'Reports'
+2. Select the desired report you want to 'Substitution Rules'
+3. In the substitutions page add a new line
+4. Select the substitution report action
+5. Set a domain to specify when this substitution should happen
+
+When a user calls a report action, the system tries to find the first
+substitution in with a domain that matches all records.
diff --git a/report_substitute/readme/USAGE.rst b/report_substitute/readme/USAGE.rst
deleted file mode 100644
index b6f661397..000000000
--- a/report_substitute/readme/USAGE.rst
+++ /dev/null
@@ -1,15 +0,0 @@
-To use this module, you need to:
-
-#. Go to 'Actions' / 'Reports'
-
-#. Select the desired report you want to 'Substitution Rules'
-
-#. In the substitutions page add a new line
-
-#. Select the substitution report action
-
-#. Set a domain to specify when this substitution should happen
-
-
-When a user calls a report action, the system tries to find the first
-substitution in with a domain that matches all records.
diff --git a/report_substitute/static/description/index.html b/report_substitute/static/description/index.html
index 670fdf5a6..f52391c7a 100644
--- a/report_substitute/static/description/index.html
+++ b/report_substitute/static/description/index.html
@@ -369,11 +369,11 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a65b073e96252a792bc139ca89648ed4ac6c9b09560f8c46add57f9a50a856f7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

This module allows you to create substitution rules for report actions.
-A typical use case is to replace a standard report by alternative reports
-when some conditions are met. For instance, it allows to configure alternate
-reports for different companies.
+A typical use case is to replace a standard report by alternative
+reports when some conditions are met. For instance, it allows to
+configure alternate reports for different companies.
Table of contents
@@ -404,7 +404,8 @@ substitution in with a domain that matches all records.
-- The document name result should take the name of the substitution report.
+- The document name result should take the name of the substitution
+report.
@@ -412,7 +413,7 @@ substitution in with a domain that matches all records.
Bugs are tracked on GitHub 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.
+
feedback.
Do not contact contributors directly about support or help with technical issues.
diff --git a/report_substitute/wizards/mail_compose_message.py b/report_substitute/wizards/mail_compose_message.py
index c1bf872ed..b71ca8175 100644
--- a/report_substitute/wizards/mail_compose_message.py
+++ b/report_substitute/wizards/mail_compose_message.py
@@ -5,7 +5,6 @@ from odoo import api, models
class MailComposeMessage(models.TransientModel):
-
_inherit = "mail.compose.message"
@api.onchange("template_id")