Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] migr mail show follower: Migration to 18.0 #1559

Open
wants to merge 4 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions mail_show_follower/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
==================
Mail Show Follower
==================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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_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-15-0/social-15-0-mail_show_follower
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/205/15.0
:alt: Try me on Runbot

|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:

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

**Table of contents**

.. contents::
:local:

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 salect 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

Usage
=====

To use this module, you need to:

#. 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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_show_follower%0Aversion:%2015.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]>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-yajo| image:: https://github.com/yajo.png?size=40px
:target: https://github.com/yajo
:alt: yajo

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/15.0/mail_show_follower>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions mail_show_follower/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
22 changes: 22 additions & 0 deletions mail_show_follower/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2020 Valentin Vinagre <[email protected]>
# Copyright 2022 Eduardo de Miguel <[email protected]>
# Copyright 2025 Thomas Pot <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Mail Show Follower",
"summary": "Show CC document followers in mails.",
"version": "18.0.1.2",
"category": "Mail",
"website": "https://github.com/OCA/social",
"author": "Sygel, Moduon, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["base", "mail"],
"maintainers": ["yajo"],
"data": [
"views/res_config_settings.xml",
"views/res_users.xml",
],
}
111 changes: 111 additions & 0 deletions mail_show_follower/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_show_follower
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-01-19 15:32+0000\n"
"Last-Translator: Yann Papouin <[email protected]>\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: mail_show_follower
#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form
msgid "%(partner_name)s <%(partner_email)s>"
msgstr ""

#. module: mail_show_follower
#: model:ir.model,name:mail_show_follower.model_res_company
msgid "Companies"
msgstr "Sociétés"

#. module: mail_show_follower
#: model:ir.model,name:mail_show_follower.model_res_config_settings
msgid "Config Settings"
msgstr "Paramétrage"

#. module: mail_show_follower
#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_message_preview
msgid "Message preview"
msgstr ""

#. module: mail_show_follower
#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form
msgid "Notice: Replies to this email will be sent to all recipients."
msgstr ""

#. module: mail_show_follower
#: model:ir.model,name:mail_show_follower.model_mail_mail
msgid "Outgoing Mails"
msgstr "Courriels à envoyer"

#. module: mail_show_follower
#: model:ir.model.fields,field_description:mail_show_follower.field_res_company__show_followers_partner_format
#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_partner_format
msgid "Partner format"
msgstr ""

#. module: mail_show_follower
#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form
msgid "Show Followers on mails"
msgstr ""

#. module: mail_show_follower
#: model:ir.model.fields,field_description:mail_show_follower.field_res_company__show_internal_users_cc
#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_internal_users_cc
msgid "Show Internal Users CC"
msgstr "Afficher les utilisateurs internes en « Copie à (CC) »"

#. module: mail_show_follower
#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form
msgid "Show Internal Users on CC"
msgstr ""

#. module: mail_show_follower
#: model:ir.model.fields,field_description:mail_show_follower.field_res_users__show_in_cc
msgid "Show in CC"
msgstr "Afficher dans « Copie à (CC) »"

#. module: mail_show_follower
#: model:ir.model.fields,help:mail_show_follower.field_res_company__show_followers_partner_format
#: model:ir.model.fields,help:mail_show_follower.field_res_config_settings__show_followers_partner_format
msgid ""
"Supported parameters:\n"
"%(partner_name)s = Partner Name\n"
"%(partner_email)s = Partner Email\n"
"%(partner_email_domain)s = Partner Email Domain"
msgstr ""

#. module: mail_show_follower
#: model:ir.model.fields,field_description:mail_show_follower.field_res_company__show_followers_message_response_warning
#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_message_response_warning
msgid "Text 'Replies'"
msgstr ""

#. module: mail_show_follower
#: model:ir.model.fields,field_description:mail_show_follower.field_res_company__show_followers_message_sent_to
#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_message_sent_to
msgid "Text 'Sent to'"
msgstr ""

#. module: mail_show_follower
#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form
msgid "This message has been sent to"
msgstr ""

#. module: mail_show_follower
#: model:ir.model,name:mail_show_follower.model_res_users
msgid "Users"
msgstr "Utilisateurs"

#~ msgid "Add internal users in cc mails details"
#~ msgstr ""
#~ "Ajouter les utilisateurs internes dans l'entête « Copie à (CC) » des e-"
#~ "mails"
103 changes: 103 additions & 0 deletions mail_show_follower/i18n/mail_show_follower.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_show_follower
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: mail_show_follower
#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form
msgid "%(partner_name)s <%(partner_email)s>"
msgstr ""

#. module: mail_show_follower
#: model:ir.model,name:mail_show_follower.model_res_company
msgid "Companies"
msgstr ""

#. module: mail_show_follower
#: model:ir.model,name:mail_show_follower.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: mail_show_follower
#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_message_preview
msgid "Message preview"
msgstr ""

#. module: mail_show_follower
#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form
msgid "Notice: Replies to this email will be sent to all recipients."
msgstr ""

#. module: mail_show_follower
#: model:ir.model,name:mail_show_follower.model_mail_mail
msgid "Outgoing Mails"
msgstr ""

#. module: mail_show_follower
#: model:ir.model.fields,field_description:mail_show_follower.field_res_company__show_followers_partner_format
#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_partner_format
msgid "Partner format"
msgstr ""

#. module: mail_show_follower
#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form
msgid "Show Followers on mails"
msgstr ""

#. module: mail_show_follower
#: model:ir.model.fields,field_description:mail_show_follower.field_res_company__show_internal_users_cc
#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_internal_users_cc
msgid "Show Internal Users CC"
msgstr ""

#. module: mail_show_follower
#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form
msgid "Show Internal Users on CC"
msgstr ""

#. module: mail_show_follower
#: model:ir.model.fields,field_description:mail_show_follower.field_res_users__show_in_cc
msgid "Show in CC"
msgstr ""

#. module: mail_show_follower
#: model:ir.model.fields,help:mail_show_follower.field_res_company__show_followers_partner_format
#: model:ir.model.fields,help:mail_show_follower.field_res_config_settings__show_followers_partner_format
msgid ""
"Supported parameters:\n"
"%(partner_name)s = Partner Name\n"
"%(partner_email)s = Partner Email\n"
"%(partner_email_domain)s = Partner Email Domain"
msgstr ""

#. module: mail_show_follower
#: model:ir.model.fields,field_description:mail_show_follower.field_res_company__show_followers_message_response_warning
#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_message_response_warning
msgid "Text 'Replies'"
msgstr ""

#. module: mail_show_follower
#: model:ir.model.fields,field_description:mail_show_follower.field_res_company__show_followers_message_sent_to
#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_message_sent_to
msgid "Text 'Sent to'"
msgstr ""

#. module: mail_show_follower
#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form
msgid "This message has been sent to"
msgstr ""

#. module: mail_show_follower
#: model:ir.model,name:mail_show_follower.model_res_users
msgid "Users"
msgstr ""
Loading
Loading