diff --git a/mail_notification_custom_subject/README.rst b/mail_notification_custom_subject/README.rst
index 4ba9b2eac..dfb89fb4d 100644
--- a/mail_notification_custom_subject/README.rst
+++ b/mail_notification_custom_subject/README.rst
@@ -17,19 +17,19 @@ Mail Notification Custom Subject
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
- :target: https://github.com/OCA/social/tree/15.0/mail_notification_custom_subject
+ :target: https://github.com/OCA/social/tree/17.0/mail_notification_custom_subject
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_notification_custom_subject
+ :target: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_notification_custom_subject
: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/social&target_branch=15.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=17.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
-This module allows you to specify templates to override the subject on the notification
-emails sent by Odoo
+This module allows you to specify templates to override the subject on
+the notification emails sent by Odoo
**Table of contents**
@@ -39,23 +39,29 @@ emails sent by Odoo
Configuration
=============
+- Activate access to **Technical Features** (debug mode).
-* Activate access to **Technical Features** (debug mode).
-* Go to **Settings > Technical > Email > Subject Replacement Templates**
-* Create a new template.
+- Go to **Settings > Technical > Email > Subject Replacement
+ Templates**
- * The field **Model** specifies the model to which the subject template should apply in the notification emails sent by Odoo.
- * The field **Subject Template** accepts `Jinja `__ expressions.
- * The field **Replace** specifies if the template should replace existing content or append to it.
+- Create a new template.
+
+ - The field **Model** specifies the model to which the subject
+ template should apply in the notification emails sent by Odoo.
+ - The field **Subject Template** accepts
+ `Jinja `__
+ expressions.
+ - The field **Replace** specifies if the template should replace
+ existing content or append to it.
Usage
=====
To use this module, you need to:
-* Open the chatter in Odoo (e.g. Open an Invoice).
-* Send a message.
-* Observe the rendered Subject template.
+- Open the chatter in Odoo (e.g. Open an Invoice).
+- Send a message.
+- Observe the rendered Subject template.
Bug Tracker
===========
@@ -63,7 +69,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.
@@ -71,28 +77,30 @@ Credits
=======
Authors
-~~~~~~~
+-------
* Tecnativa
Contributors
-~~~~~~~~~~~~
+------------
-* Tecnativa
+- Tecnativa
- * Pedro M. Baeza
- * João Marques
- * Carlos Roca
- * Víctor Martínez
+ - Pedro M. Baeza
+ - João Marques
+ - Carlos Roca
+ - Víctor Martínez
-* Versada
- * Naglis Jonaitis
+- Versada
-* Moduon
- * Eduardo de Miguel
+ - Naglis Jonaitis
+
+- Moduon
+
+ - Eduardo de Miguel
Maintainers
-~~~~~~~~~~~
+-----------
This module is maintained by the OCA.
@@ -112,6 +120,6 @@ Current `maintainer `__:
|maintainer-yajo|
-This module is part of the `OCA/social `_ project on GitHub.
+This module is part of the `OCA/social `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/mail_notification_custom_subject/models/mail_thread.py b/mail_notification_custom_subject/models/mail_thread.py
index 8b97a636c..4af63edee 100644
--- a/mail_notification_custom_subject/models/mail_thread.py
+++ b/mail_notification_custom_subject/models/mail_thread.py
@@ -26,7 +26,7 @@ class MailThread(models.AbstractModel):
attachment_ids=None,
add_sign=True,
record_name=False,
- **kwargs
+ **kwargs,
):
if subtype_xmlid:
subtype_id = self.env["ir.model.data"]._xmlid_to_res_id(
@@ -60,9 +60,7 @@ class MailThread(models.AbstractModel):
template_src=template.subject_template,
model=self._name,
res_ids=[self.id],
- )[
- self.id
- ]
+ )[self.id]
if template.position == "replace":
subject = rendered_subject_template
elif template.position == "append_before":
diff --git a/mail_notification_custom_subject/pyproject.toml b/mail_notification_custom_subject/pyproject.toml
new file mode 100644
index 000000000..4231d0ccc
--- /dev/null
+++ b/mail_notification_custom_subject/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["whool"]
+build-backend = "whool.buildapi"
diff --git a/mail_notification_custom_subject/readme/CONFIGURE.md b/mail_notification_custom_subject/readme/CONFIGURE.md
new file mode 100644
index 000000000..42242f3f1
--- /dev/null
+++ b/mail_notification_custom_subject/readme/CONFIGURE.md
@@ -0,0 +1,13 @@
+- Activate access to **Technical Features** (debug mode).
+
+- Go to **Settings \> Technical \> Email \> Subject Replacement
+ Templates**
+
+- Create a new template.
+
+ > - The field **Model** specifies the model to which the subject
+ > template should apply in the notification emails sent by Odoo.
+ > - The field **Subject Template** accepts
+ > [Jinja](https://jinja.palletsprojects.com/en/2.11.x/) expressions.
+ > - The field **Replace** specifies if the template should replace
+ > existing content or append to it.
diff --git a/mail_notification_custom_subject/readme/CONFIGURE.rst b/mail_notification_custom_subject/readme/CONFIGURE.rst
deleted file mode 100644
index c777ed3ae..000000000
--- a/mail_notification_custom_subject/readme/CONFIGURE.rst
+++ /dev/null
@@ -1,8 +0,0 @@
-
-* Activate access to **Technical Features** (debug mode).
-* Go to **Settings > Technical > Email > Subject Replacement Templates**
-* Create a new template.
-
- * The field **Model** specifies the model to which the subject template should apply in the notification emails sent by Odoo.
- * The field **Subject Template** accepts `Jinja `__ expressions.
- * The field **Replace** specifies if the template should replace existing content or append to it.
diff --git a/mail_notification_custom_subject/readme/CONTRIBUTORS.md b/mail_notification_custom_subject/readme/CONTRIBUTORS.md
new file mode 100644
index 000000000..a8de95dee
--- /dev/null
+++ b/mail_notification_custom_subject/readme/CONTRIBUTORS.md
@@ -0,0 +1,12 @@
+- Tecnativa \<\>
+
+ > - Pedro M. Baeza
+ > - João Marques
+ > - Carlos Roca
+ > - Víctor Martínez
+
+- Versada \<\>
+ - Naglis Jonaitis
+
+- Moduon \<\>
+ - Eduardo de Miguel
diff --git a/mail_notification_custom_subject/readme/CONTRIBUTORS.rst b/mail_notification_custom_subject/readme/CONTRIBUTORS.rst
deleted file mode 100644
index f88a42efe..000000000
--- a/mail_notification_custom_subject/readme/CONTRIBUTORS.rst
+++ /dev/null
@@ -1,12 +0,0 @@
-* Tecnativa
-
- * Pedro M. Baeza
- * João Marques
- * Carlos Roca
- * Víctor Martínez
-
-* Versada
- * Naglis Jonaitis
-
-* Moduon
- * Eduardo de Miguel
diff --git a/mail_notification_custom_subject/readme/DESCRIPTION.rst b/mail_notification_custom_subject/readme/DESCRIPTION.md
similarity index 59%
rename from mail_notification_custom_subject/readme/DESCRIPTION.rst
rename to mail_notification_custom_subject/readme/DESCRIPTION.md
index 2b0727f1a..0f4b12c8b 100644
--- a/mail_notification_custom_subject/readme/DESCRIPTION.rst
+++ b/mail_notification_custom_subject/readme/DESCRIPTION.md
@@ -1,2 +1,2 @@
-This module allows you to specify templates to override the subject on the notification
-emails sent by Odoo
+This module allows you to specify templates to override the subject on
+the notification emails sent by Odoo
diff --git a/mail_notification_custom_subject/readme/USAGE.md b/mail_notification_custom_subject/readme/USAGE.md
new file mode 100644
index 000000000..7ff0b69cd
--- /dev/null
+++ b/mail_notification_custom_subject/readme/USAGE.md
@@ -0,0 +1,5 @@
+To use this module, you need to:
+
+- Open the chatter in Odoo (e.g. Open an Invoice).
+- Send a message.
+- Observe the rendered Subject template.
diff --git a/mail_notification_custom_subject/readme/USAGE.rst b/mail_notification_custom_subject/readme/USAGE.rst
deleted file mode 100644
index 49bed60a7..000000000
--- a/mail_notification_custom_subject/readme/USAGE.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-To use this module, you need to:
-
-* Open the chatter in Odoo (e.g. Open an Invoice).
-* Send a message.
-* Observe the rendered Subject template.
diff --git a/mail_notification_custom_subject/static/description/index.html b/mail_notification_custom_subject/static/description/index.html
index c73471ddf..896890b1f 100644
--- a/mail_notification_custom_subject/static/description/index.html
+++ b/mail_notification_custom_subject/static/description/index.html
@@ -1,4 +1,3 @@
-
@@ -369,9 +368,9 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b873c6dfb9d094a1b5ebcd5c16a0c39a2127f4e7707aa54dd51dd4049f65d3fe
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

-This module allows you to specify templates to override the subject on the notification
-emails sent by Odoo
+

+This module allows you to specify templates to override the subject on
+the notification emails sent by Odoo
Table of contents
@@ -391,14 +390,19 @@ emails sent by Odoo
Activate access to Technical Features (debug mode).
-Go to Settings > Technical > Email > Subject Replacement Templates
+Go to Settings > Technical > Email > Subject Replacement
+Templates
Create a new template.
-- The field Model specifies the model to which the subject template should apply in the notification emails sent by Odoo.
-- The field Subject Template accepts Jinja expressions.
-- The field Replace specifies if the template should replace existing content or append to it.
+- The field Model specifies the model to which the subject
+template should apply in the notification emails sent by Odoo.
+- The field Subject Template accepts
+Jinja
+expressions.
+- The field Replace specifies if the template should replace
+existing content or append to it.
@@ -418,7 +422,7 @@ emails sent by Odoo
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.
@@ -469,7 +467,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.
Current maintainer:

-This module is part of the OCA/social project on GitHub.
+This module is part of the OCA/social project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.