Skip to content

Commit

Permalink
[IMP] mail_show_follower: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnauCForgeFlow committed Jan 31, 2025
1 parent 751e120 commit 967beeb
Show file tree
Hide file tree
Showing 11 changed files with 83 additions and 55 deletions.
54 changes: 31 additions & 23 deletions mail_show_follower/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,23 @@ Mail Show Follower
: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/16.0/mail_show_follower
:target: https://github.com/OCA/social/tree/17.0/mail_show_follower
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_show_follower
:target: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_show_follower
: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=16.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 extends the functionality of mailing to show the document followers in head of the mails.
In the cc, only appear when:
This module extends the functionality of mailing to show the document
followers in head of the mails. In the cc, only appear when:

#. The followers only count if are contacts or external users (Inner Followers will be discriminated)
#. The number of followers are more than 1.
1. The followers only count if are contacts or external users (Inner
Followers will be discriminated)
2. The number of followers are more than 1.

**Table of contents**

Expand All @@ -44,49 +45,56 @@ Configuration

To configure this module, you need to:

#. Go General settings/Discuss/Show Followers on mails/Show Internal Users CC and set if want to show or not internal users in cc details.
#. Go Settings/Users & Company select any user in 'Preferences' check or not the 'Show in CC' field if this user need to appear in the cc note.
#. Go General settings/Discuss/Show Followers on mails/Text 'Sent to' and set the initial part of the message.
#. Go General settings/Discuss/Show Followers on mails/Partner format and choose desired fields to show on CC recipients.
#. Go General settings/Discuss/Show Followers on mails/Text 'Replies' and choose desired warn message
#. Go General settings/Discuss/Show Followers in 'Models to exclude' enter the models you want to exclude from the CC note.
1. Go General settings/Discuss/Show Followers on mails/Show Internal
Users CC and set if want to show or not internal users in cc details.
2. Go Settings/Users & Company select any user in 'Preferences' check or
not the 'Show in CC' field if this user need to appear in the cc
note.
3. Go General settings/Discuss/Show Followers on mails/Text 'Sent to'
and set the initial part of the message.
4. Go General settings/Discuss/Show Followers on mails/Partner format
and choose desired fields to show on CC recipients.
5. Go General settings/Discuss/Show Followers on mails/Text 'Replies'
and choose desired warn message
6. Go General settings/Discuss/Show Followers in 'Models to exclude'
enter the models you want to exclude from the CC note.

Usage
=====

To use this module, you need to:

#. Send an email from any document of odoo.
1. Send an email from any document of odoo.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/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 <https://github.com/OCA/social/issues/new?body=module:%20mail_show_follower%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_show_follower%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~
-------

* Sygel
* Moduon

Contributors
~~~~~~~~~~~~
------------

* Valentin Vinagre <[email protected]>
* Lorenzo Battistini
* Eduardo de Miguel <[email protected]>
* Vincent Van Rossem <[email protected]>
- Valentin Vinagre <[email protected]>
- Lorenzo Battistini
- Eduardo de Miguel <[email protected]>
- Vincent Van Rossem <[email protected]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

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

|maintainer-yajo|

This module is part of the `OCA/social <https://github.com/OCA/social/tree/16.0/mail_show_follower>`_ project on GitHub.
This module is part of the `OCA/social <https://github.com/OCA/social/tree/17.0/mail_show_follower>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions mail_show_follower/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
16 changes: 16 additions & 0 deletions mail_show_follower/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
To configure this module, you need to:

1. Go General settings/Discuss/Show Followers on mails/Show Internal
Users CC and set if want to show or not internal users in cc
details.
2. Go Settings/Users & Company select any user in 'Preferences' check
or not the 'Show in CC' field if this user need to appear in the cc
note.
3. Go General settings/Discuss/Show Followers on mails/Text 'Sent to'
and set the initial part of the message.
4. Go General settings/Discuss/Show Followers on mails/Partner format
and choose desired fields to show on CC recipients.
5. Go General settings/Discuss/Show Followers on mails/Text 'Replies'
and choose desired warn message
6. Go General settings/Discuss/Show Followers in 'Models to exclude'
enter the models you want to exclude from the CC note.
8 changes: 0 additions & 8 deletions mail_show_follower/readme/CONFIGURE.rst

This file was deleted.

4 changes: 4 additions & 0 deletions mail_show_follower/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Valentin Vinagre \<<[email protected]>\>
- Lorenzo Battistini
- Eduardo de Miguel \<<[email protected]>\>
- Vincent Van Rossem \<<[email protected]>\>
4 changes: 0 additions & 4 deletions mail_show_follower/readme/CONTRIBUTORS.rst

This file was deleted.

6 changes: 6 additions & 0 deletions mail_show_follower/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This module extends the functionality of mailing to show the document
followers in head of the mails. In the cc, only appear when:

1. The followers only count if are contacts or external users (Inner
Followers will be discriminated)
2. The number of followers are more than 1.
5 changes: 0 additions & 5 deletions mail_show_follower/readme/DESCRIPTION.rst

This file was deleted.

3 changes: 3 additions & 0 deletions mail_show_follower/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
To use this module, you need to:

1. Send an email from any document of odoo.
3 changes: 0 additions & 3 deletions mail_show_follower/readme/USAGE.rst

This file was deleted.

32 changes: 20 additions & 12 deletions mail_show_follower/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,12 @@ <h1 class="title">Mail Show Follower</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:81b7b6b40851b1771252579b058c102acde3c9c95c515b1ef782a24e4976f694
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/social/tree/16.0/mail_show_follower"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_show_follower"><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/social&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of mailing to show the document followers in head of the mails.
In the cc, only appear when:</p>
<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/social/tree/17.0/mail_show_follower"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_show_follower"><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/social&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of mailing to show the document
followers in head of the mails. In the cc, only appear when:</p>
<ol class="arabic simple">
<li>The followers only count if are contacts or external users (Inner Followers will be discriminated)</li>
<li>The followers only count if are contacts or external users (Inner
Followers will be discriminated)</li>
<li>The number of followers are more than 1.</li>
</ol>
<p><strong>Table of contents</strong></p>
Expand All @@ -394,12 +395,19 @@ <h1 class="title">Mail Show Follower</h1>
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<p>To configure this module, you need to:</p>
<ol class="arabic simple">
<li>Go General settings/Discuss/Show Followers on mails/Show Internal Users CC and set if want to show or not internal users in cc details.</li>
<li>Go Settings/Users &amp; Company select any user in ‘Preferences’ check or not the ‘Show in CC’ field if this user need to appear in the cc note.</li>
<li>Go General settings/Discuss/Show Followers on mails/Text ‘Sent to’ and set the initial part of the message.</li>
<li>Go General settings/Discuss/Show Followers on mails/Partner format and choose desired fields to show on CC recipients.</li>
<li>Go General settings/Discuss/Show Followers on mails/Text ‘Replies’ and choose desired warn message</li>
<li>Go General settings/Discuss/Show Followers in ‘Models to exclude’ enter the models you want to exclude from the CC note.</li>
<li>Go General settings/Discuss/Show Followers on mails/Show Internal
Users CC and set if want to show or not internal users in cc details.</li>
<li>Go Settings/Users &amp; Company select any user in ‘Preferences’ check or
not the ‘Show in CC’ field if this user need to appear in the cc
note.</li>
<li>Go General settings/Discuss/Show Followers on mails/Text ‘Sent to’
and set the initial part of the message.</li>
<li>Go General settings/Discuss/Show Followers on mails/Partner format
and choose desired fields to show on CC recipients.</li>
<li>Go General settings/Discuss/Show Followers on mails/Text ‘Replies’
and choose desired warn message</li>
<li>Go General settings/Discuss/Show Followers in ‘Models to exclude’
enter the models you want to exclude from the CC note.</li>
</ol>
</div>
<div class="section" id="usage">
Expand All @@ -414,7 +422,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/social/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mail_show_follower%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mail_show_follower%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -446,7 +454,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/yajo"><img alt="yajo" src="https://github.com/yajo.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/16.0/mail_show_follower">OCA/social</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/17.0/mail_show_follower">OCA/social</a> project on GitHub.</p>
<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>
</div>
</div>
Expand Down

0 comments on commit 967beeb

Please sign in to comment.