diff --git a/mail_show_follower/README.rst b/mail_show_follower/README.rst new file mode 100644 index 000000000..01354645f --- /dev/null +++ b/mail_show_follower/README.rst @@ -0,0 +1,124 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +================== +Mail Show Follower +================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:b0a35ebc852bd0d0d6400999f878c904a998f8230d0fcfb1cdf105ce1e7abba3 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/license-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%2Fmail-lightgray.png?logo=github + :target: https://github.com/OCA/mail/tree/19.0/mail_show_follower + :alt: OCA/mail +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/mail-19-0/mail-19-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/mail&target_branch=19.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: + +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** + +.. contents:: + :local: + +Configuration +============= + +To configure this module, you need to: + +1. Go General settings/Mail/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/Mail/Show Followers on mails/Text 'Sent to' and + set the initial part of the message. +4. Go General settings/Mail/Show Followers on mails/Partner format and + choose desired fields to show on CC recipients. +5. Go General settings/Mail/Show Followers on mails/Text 'Replies' and + choose desired warn message +6. Go General settings/Mail/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: + +1. Send an email from any document of odoo. + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Sygel +* Moduon + +Contributors +------------ + +- Valentin Vinagre +- Lorenzo Battistini +- Eduardo de Miguel +- Vincent Van Rossem +- Michel Guiheneuf + +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 `__: + +|maintainer-yajo| + +This module is part of the `OCA/mail `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mail_show_follower/__init__.py b/mail_show_follower/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/mail_show_follower/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/mail_show_follower/__manifest__.py b/mail_show_follower/__manifest__.py new file mode 100644 index 000000000..731f05e61 --- /dev/null +++ b/mail_show_follower/__manifest__.py @@ -0,0 +1,22 @@ +# Copyright 2020 Valentin Vinagre +# Copyright 2022 Eduardo de Miguel +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Mail Show Follower", + "summary": "Show CC document followers in mails.", + "version": "19.0.1.0.0", + "category": "Mail", + "website": "https://github.com/OCA/mail", + "author": "Sygel, Moduon, Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": ["base", "mail"], + "maintainers": ["yajo"], + "data": [ + "data/config_parameter_data.xml", + "views/res_config_settings.xml", + "views/res_users.xml", + ], +} diff --git a/mail_show_follower/data/config_parameter_data.xml b/mail_show_follower/data/config_parameter_data.xml new file mode 100644 index 000000000..e582b4e27 --- /dev/null +++ b/mail_show_follower/data/config_parameter_data.xml @@ -0,0 +1,9 @@ + + + + show_followers.models_to_exclude + blog.blog,blog.post,slide.slide,slide.channel,forum.forum,forum.post + + diff --git a/mail_show_follower/i18n/ca.po b/mail_show_follower/i18n/ca.po new file mode 100644 index 000000000..30bb38226 --- /dev/null +++ b/mail_show_follower/i18n/ca.po @@ -0,0 +1,157 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_show_follower +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2025-12-11 09:15+0000\n" +"Last-Translator: Ricard \n" +"Language-Team: none\n" +"Language: ca\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 5.10.4\n" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_email)s = Partner Email" +msgstr "%(partner_email)s = Correu electrònic de l'empresa" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_email_domain)s = Partner Email Domain" +msgstr "%(partner_email_domain)s = Domini de correu electrònic de l'empresa" + +#. 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 "%(partner_name)s <%(partner_email)s>" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_name)s = Partner Name" +msgstr "%(partner_name)s = Nom de l'empresa" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "Supported parameters:" +msgstr "Paràmetres admesos:" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_company +msgid "Companies" +msgstr "Companyies" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_config_settings +msgid "Config Settings" +msgstr "Ajustos de configuració" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_partner +msgid "Contact" +msgstr "Contacte" + +#. 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 "Vista prèvia del missatge" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "Models to exclude" +msgstr "Models a excloure" + +#. 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 "" +"Avís: Les respostes a aquest correu electrònic s'enviaran a tots els " +"destinataris." + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_mail_mail +msgid "Outgoing Mails" +msgstr "Correus sortints" + +#. 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 "Format de l'empresa" + +#. module: mail_show_follower +#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Show Followers Models To Exclude" +msgstr "Mostrar Models de Seguidors a Excloure" + +#. 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 "Mostrar seguidors als correus" + +#. 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 "Mostrar Usuaris Interns 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 "Mostrar Usuaris Interns a CC" + +#. module: mail_show_follower +#: model:ir.model.fields,field_description:mail_show_follower.field_res_users__show_in_cc +msgid "Show in CC" +msgstr "Mostrar a 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 "" +"Paràmetres admesos:\n" +"%(partner_name)s = Nom de l'empresa\n" +"%(partner_email)s = Correu electrònic de l'empresa\n" +"%(partner_email_domain)s = Domini de correu electrònic de l'empresa" + +#. module: mail_show_follower +#: model:ir.model.fields,help:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Tecnichal model names separated by coma" +msgstr "Noms tècnics de model separats per comes" + +#. 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 "Text 'Respostes'" + +#. 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 "Text 'Enviat a'" + +#. 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 "Aquest missatge ha estat enviat a" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_users +msgid "User" +msgstr "Usuari" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "blog.blog,blog.post" +msgstr "blog.blog,blog.post" diff --git a/mail_show_follower/i18n/de.po b/mail_show_follower/i18n/de.po new file mode 100644 index 000000000..aa0fa1a35 --- /dev/null +++ b/mail_show_follower/i18n/de.po @@ -0,0 +1,155 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_show_follower +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2026-04-09 21:45+0000\n" +"Last-Translator: MJD \n" +"Language-Team: none\n" +"Language: de\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 5.15.2\n" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_email)s = Partner Email" +msgstr "(partner_email)s = Partner-E-Mail" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_email_domain)s = Partner Email Domain" +msgstr "%(partner_email_domain)s = Domain der Partner-E-Mail" + +#. 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_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_name)s = Partner Name" +msgstr "%(partner_name)s = Partnername" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "Supported parameters:" +msgstr "Unterstützte Parameter:" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_company +msgid "Companies" +msgstr "Unternehmen" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_config_settings +msgid "Config Settings" +msgstr "Konfigurationseinstellungen" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_partner +msgid "Contact" +msgstr "Kontakt" + +#. 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 "Nachrichtenvorschau" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "Models to exclude" +msgstr "Auszuschließende Modelle" + +#. 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 "Hinweis: Antworten auf diese E-Mail werden an alle Empfänger gesendet." + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_mail_mail +msgid "Outgoing Mails" +msgstr "Ausgehende E-Mails" + +#. 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 "Partnerformat" + +#. module: mail_show_follower +#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Show Followers Models To Exclude" +msgstr "Zeige auszuschließende Follower-Modelle" + +#. 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 "Zeige Follower in E-Mails" + +#. 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 "Zeige interne Benutzer in 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 "Zeige interne Benutzer in CC" + +#. module: mail_show_follower +#: model:ir.model.fields,field_description:mail_show_follower.field_res_users__show_in_cc +msgid "Show in CC" +msgstr "Zeige in 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 "" +"Unterstützte Parameter:\n" +"%(partner_name)s = Partnername\n" +"%(partner_email)s = E-Mail-Adresse des Partners\n" +"%(partner_email_domain)s = E-Mail-Domain des Partners" + +#. module: mail_show_follower +#: model:ir.model.fields,help:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Tecnichal model names separated by coma" +msgstr "Technische Modellbezeichnungen, durch Kommas getrennt" + +#. 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 "Text 'Antworten'" + +#. 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 "Text 'Gesendet an'" + +#. 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 "Diese Nachricht wurde geschickt an" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_users +msgid "User" +msgstr "Nutzer" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "blog.blog,blog.post" +msgstr "" diff --git a/mail_show_follower/i18n/es.po b/mail_show_follower/i18n/es.po new file mode 100644 index 000000000..b26f6de2a --- /dev/null +++ b/mail_show_follower/i18n/es.po @@ -0,0 +1,157 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_show_follower +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2026-05-07 18:19+0000\n" +"Last-Translator: Ed-Spain \n" +"Language-Team: none\n" +"Language: es\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 5.15.2\n" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_email)s = Partner Email" +msgstr "%(partner_email)s = Correo electrónico del contacto" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_email_domain)s = Partner Email Domain" +msgstr "%(partner_email_domain)s = Dominio del correo electrónico del contacto" + +#. 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 "%(partner_name)s <%(partner_email)s>" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_name)s = Partner Name" +msgstr "%(partner_name)s = Nombre del contacto" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "Supported parameters:" +msgstr "Parámetros soportados:" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_company +msgid "Companies" +msgstr "Compañías" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_config_settings +msgid "Config Settings" +msgstr "Ajustes Configuración" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_partner +msgid "Contact" +msgstr "Contacto" + +#. 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 "Vista previa del mensaje" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "Models to exclude" +msgstr "Modelos a excluir" + +#. 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 "" +"Aviso: Las respuestas a este correo electrónico se enviarán a todos los " +"destinatarios." + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_mail_mail +msgid "Outgoing Mails" +msgstr "Correos Salientes" + +#. 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 "Formato socio" + +#. module: mail_show_follower +#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Show Followers Models To Exclude" +msgstr "Mostrar modelos de seguidores a excluir" + +#. 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 "Mostrar Seguidores en mails" + +#. 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 "Mostrar Usuarios Internos 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 "Mostrar Usuarios Internos en CC" + +#. module: mail_show_follower +#: model:ir.model.fields,field_description:mail_show_follower.field_res_users__show_in_cc +msgid "Show in CC" +msgstr "Mostrar en 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 "" +"Parámetros admitidos:\n" +"%(partner_name)s = Nombre del socio\n" +"%(partner_email)s = Correo electrónico del socio\n" +"%(partner_email_domain)s = Dominio de correo electrónico del socio" + +#. module: mail_show_follower +#: model:ir.model.fields,help:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Tecnichal model names separated by coma" +msgstr "Nombres técnicos de modelos separados por coma" + +#. 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 "Texto 'Respuestas'" + +#. 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 "Texto 'Enviado a'" + +#. 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 "Este mensaje ha sido enviado a" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_users +msgid "User" +msgstr "Usuario" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "blog.blog,blog.post" +msgstr "blog.blog,blog.post" diff --git a/mail_show_follower/i18n/fr.po b/mail_show_follower/i18n/fr.po new file mode 100644 index 000000000..828c61f65 --- /dev/null +++ b/mail_show_follower/i18n/fr.po @@ -0,0 +1,161 @@ +# 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: 2025-10-21 13:11+0000\n" +"Last-Translator: Julien Guenat \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 5.10.4\n" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_email)s = Partner Email" +msgstr "" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_email_domain)s = Partner Email Domain" +msgstr "" + +#. 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_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_name)s = Partner Name" +msgstr "" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "Supported parameters:" +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,name:mail_show_follower.model_res_partner +msgid "Contact" +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 "Models to exclude" +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 "" +"Remarque : les réponses à cet e-mail seront envoyées à tous les " +"destinataires." + +#. 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:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Show Followers Models To Exclude" +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,help:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Tecnichal model names separated by coma" +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 "Ce message a été envoyé à" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_users +msgid "User" +msgstr "" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "blog.blog,blog.post" +msgstr "" + +#~ 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" diff --git a/mail_show_follower/i18n/it.po b/mail_show_follower/i18n/it.po new file mode 100644 index 000000000..9e1a9ecd0 --- /dev/null +++ b/mail_show_follower/i18n/it.po @@ -0,0 +1,156 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_show_follower +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2025-07-22 09:26+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\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 5.10.4\n" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_email)s = Partner Email" +msgstr "%(partner_email)s = e-mail partner" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_email_domain)s = Partner Email Domain" +msgstr "%(partner_email_domain)s = dominio e-mail partner" + +#. 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 "%(partner_name)s <%(partner_email)s>" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_name)s = Partner Name" +msgstr "%(partner_name)s = nome partner" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "Supported parameters:" +msgstr "Parametri supportati:" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_company +msgid "Companies" +msgstr "Aziende" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_config_settings +msgid "Config Settings" +msgstr "Impostazioni configurazione" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_partner +msgid "Contact" +msgstr "Contatto" + +#. 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 "Anteprima messaggio" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "Models to exclude" +msgstr "Modelli da escludere" + +#. 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 "" +"Avviso: la risposta a questa e-mail verrà inviata a tutti i deStinatari." + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_mail_mail +msgid "Outgoing Mails" +msgstr "E-mail in uscita" + +#. 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 "Formato partner" + +#. module: mail_show_follower +#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Show Followers Models To Exclude" +msgstr "Visualizza modelli di chi segue da escludere" + +#. 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 "Visualizza chi segue nelle e-mail" + +#. 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 "Visualizza utenti interni in 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 "Visualizza utenti interni in CC" + +#. module: mail_show_follower +#: model:ir.model.fields,field_description:mail_show_follower.field_res_users__show_in_cc +msgid "Show in CC" +msgstr "Visualizza in 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 "" +"Parametri supportati:\n" +"%(partner_name)s = nome partner\n" +"%(partner_email)s = e-mail partner\n" +"%(partner_email_domain)s = dominio e-mail partner" + +#. module: mail_show_follower +#: model:ir.model.fields,help:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Tecnichal model names separated by coma" +msgstr "Nomi tecnici modelli separati da virgola" + +#. 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 "Testo 'Rispondi'" + +#. 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 "Testo 'Invia a'" + +#. 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 "Questo messaggio è stato inviato a" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_users +msgid "User" +msgstr "Utente" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "blog.blog,blog.post" +msgstr "blog.blog,blog.post" diff --git a/mail_show_follower/i18n/mail_show_follower.pot b/mail_show_follower/i18n/mail_show_follower.pot new file mode 100644 index 000000000..d4410ba6b --- /dev/null +++ b/mail_show_follower/i18n/mail_show_follower.pot @@ -0,0 +1,148 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_show_follower +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.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_email)s = Partner Email" +msgstr "" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_email_domain)s = Partner Email Domain" +msgstr "" + +#. 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_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_name)s = Partner Name" +msgstr "" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "Supported parameters:" +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,name:mail_show_follower.model_res_partner +msgid "Contact" +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 "Models to exclude" +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:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Show Followers Models To Exclude" +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,help:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Tecnichal model names separated by coma" +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 "User" +msgstr "" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "blog.blog,blog.post" +msgstr "" diff --git a/mail_show_follower/i18n/pt_BR.po b/mail_show_follower/i18n/pt_BR.po new file mode 100644 index 000000000..a81e4bdca --- /dev/null +++ b/mail_show_follower/i18n/pt_BR.po @@ -0,0 +1,157 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_show_follower +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-12-19 19:06+0000\n" +"Last-Translator: Rodrigo Sottomaior Macedo " +"\n" +"Language-Team: none\n" +"Language: pt_BR\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 5.6.2\n" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_email)s = Partner Email" +msgstr "" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_email_domain)s = Partner Email Domain" +msgstr "" + +#. 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 "%(partner_name)s <%(partner_email)s>" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "%(partner_name)s = Partner Name" +msgstr "" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "Supported parameters:" +msgstr "" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_company +msgid "Companies" +msgstr "Empresas" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_config_settings +msgid "Config Settings" +msgstr "Configurações" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_partner +msgid "Contact" +msgstr "Contato" + +#. 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 "Visualização da Mensagem" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "Models to exclude" +msgstr "Modelos para exclusão" + +#. 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 "" +"Aviso: As respostas a este e-mail serão enviadas a todos os destinatários." + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_mail_mail +msgid "Outgoing Mails" +msgstr "E-mails de Saída" + +#. 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 "Formato do Parceiro" + +#. module: mail_show_follower +#: model:ir.model.fields,field_description:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Show Followers Models To Exclude" +msgstr "Mostrar modelos de seguidores para excluir" + +#. 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 "Mostrar seguidores nos e-mails" + +#. 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 "Mostrar Usuários Internos 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 "Mostrar usuários internos no CC" + +#. module: mail_show_follower +#: model:ir.model.fields,field_description:mail_show_follower.field_res_users__show_in_cc +msgid "Show in CC" +msgstr "Mostrar em 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 "" +"Parâmetros suportados:\n" +"%(partner_name)s = Nome do parceiro\n" +"%(partner_email)s = E-mail do parceiro\n" +"%(partner_email_domain)s = Domínio de e-mail do parceiro" + +#. module: mail_show_follower +#: model:ir.model.fields,help:mail_show_follower.field_res_config_settings__show_followers_models_to_exclude +msgid "Tecnichal model names separated by coma" +msgstr "Nomes de modelos técnicos separados por vírgula" + +#. 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 "Texto 'Respostas'" + +#. 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 "Texto 'Enviado para'" + +#. 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 "Esta mensagem foi enviada para" + +#. module: mail_show_follower +#: model:ir.model,name:mail_show_follower.model_res_users +msgid "User" +msgstr "Usuário" + +#. module: mail_show_follower +#: model_terms:ir.ui.view,arch_db:mail_show_follower.res_config_settings_view_form +msgid "blog.blog,blog.post" +msgstr "blog.blog,blog.post" diff --git a/mail_show_follower/models/__init__.py b/mail_show_follower/models/__init__.py new file mode 100644 index 000000000..44f67d084 --- /dev/null +++ b/mail_show_follower/models/__init__.py @@ -0,0 +1,5 @@ +from . import mail_mail +from . import res_company +from . import res_config_settings +from . import res_partner +from . import res_users diff --git a/mail_show_follower/models/mail_mail.py b/mail_show_follower/models/mail_mail.py new file mode 100644 index 000000000..7d7aab054 --- /dev/null +++ b/mail_show_follower/models/mail_mail.py @@ -0,0 +1,112 @@ +from markupsafe import Markup + +from odoo import models, tools + + +class MailMail(models.Model): + _inherit = "mail.mail" + + def _build_cc_text(self, partners): + if not partners: + return "" + + def get_ctx_param(ctx_key, default_parm): + if ctx_key in self.env.context: + return self.env.context[ctx_key] + return default_parm + + def remove_p(markup_txt): + if markup_txt.startswith("

") and markup_txt.endswith("

"): + return markup_txt[3:-4] + return markup_txt + + company = self.env.company + partner_format = get_ctx_param( + "partner_format", company.show_followers_partner_format + ) + msg_sent_to = get_ctx_param( + "msg_sent_to", company.show_followers_message_sent_to + ) + msg_warn = get_ctx_param( + "msg_warn", company.show_followers_message_response_warning + ) + partner_message = ", ".join( + [ + partner_format + % { + # Supported parameters + "partner_name": p.name, + "partner_email": p.email, + "partner_email_domain": tools.email_domain_extract(p.email), + } + for p in partners + ] + ) + full_text = """ +
+ {msg_sent_to} {partner_message} + {rc}{msg_warn} +
+ """.format( + msg_sent_to=remove_p(msg_sent_to), + partner_message=Markup.escape(partner_message), + rc=msg_warn.striptags() and "
" or "", + msg_warn=msg_warn.striptags() and remove_p(msg_warn) or "", + ) + return full_text + + def _send( + self, + auto_commit=False, + raise_exception=False, + smtp_session=None, + alias_domain_id=False, + mail_server=False, + post_send_callback=None, + ): + group_user = self.env.ref("base.group_user") + models_to_exclude = ( + self.env["ir.config_parameter"] + .sudo() + .get_param("show_followers.models_to_exclude", "") + ) + for mail in self: + if not (mail.model and mail.res_id and group_user): + continue + if models_to_exclude and mail.model in models_to_exclude.split(","): + continue + # recipients from any Notification Type (i.e. email, inbox, etc.) + recipients = mail.notification_ids.res_partner_id + record = self.env[mail.model].browse(mail.res_id) + if not record.exists(): + continue + company = getattr(record, "company_id", False) + if not company: + company = self.env.company + show_internal_users = company and company.show_internal_users_cc + show_in_cc_recipients = recipients._filter_shown_in_cc(show_internal_users) + if len(show_in_cc_recipients) <= 1: + continue + lang = ( + mail.notification_ids.res_partner_id[:1].lang + or mail.author_id.lang + or company.partner_id.lang + or "en_US" + ) + final_cc = ( + mail.with_context(lang=lang) + .with_company(company) + ._build_cc_text(show_in_cc_recipients) + ) + mail.body_html = final_cc + mail.body_html + + return super()._send( + auto_commit=auto_commit, + raise_exception=raise_exception, + smtp_session=smtp_session, + alias_domain_id=alias_domain_id, + mail_server=mail_server, + post_send_callback=post_send_callback, + ) diff --git a/mail_show_follower/models/res_company.py b/mail_show_follower/models/res_company.py new file mode 100644 index 000000000..3e802cc00 --- /dev/null +++ b/mail_show_follower/models/res_company.py @@ -0,0 +1,28 @@ +from odoo import fields, models + + +class ResCompany(models.Model): + _inherit = "res.company" + + show_internal_users_cc = fields.Boolean( + string="Show Internal Users CC", + default=True, + ) + show_followers_message_sent_to = fields.Html( + string="Text 'Sent to'", + translate=True, + default="This message has been sent to", + ) + show_followers_partner_format = fields.Char( + string="Partner format", + default="%(partner_name)s", + help="Supported parameters:\n" + "%(partner_name)s = Partner Name\n" + "%(partner_email)s = Partner Email\n" + "%(partner_email_domain)s = Partner Email Domain", + ) + show_followers_message_response_warning = fields.Html( + string="Text 'Replies'", + translate=True, + default="Notice: Replies to this email will be sent to all recipients", + ) diff --git a/mail_show_follower/models/res_config_settings.py b/mail_show_follower/models/res_config_settings.py new file mode 100644 index 000000000..8c50849a3 --- /dev/null +++ b/mail_show_follower/models/res_config_settings.py @@ -0,0 +1,55 @@ +from odoo import api, fields, models + + +class ResConfigSettings(models.TransientModel): + _inherit = "res.config.settings" + + show_internal_users_cc = fields.Boolean( + related="company_id.show_internal_users_cc", + readonly=False, + ) + show_followers_message_sent_to = fields.Html( + related="company_id.show_followers_message_sent_to", + readonly=False, + ) + show_followers_partner_format = fields.Char( + related="company_id.show_followers_partner_format", + readonly=False, + help="Supported parameters:\n" + "%(partner_name)s = Partner Name\n" + "%(partner_email)s = Partner Email\n" + "%(partner_email_domain)s = Partner Email Domain", + ) + show_followers_message_response_warning = fields.Html( + related="company_id.show_followers_message_response_warning", + readonly=False, + ) + show_followers_message_preview = fields.Html( + string="Message preview", + readonly=True, + store=False, + ) + show_followers_models_to_exclude = fields.Char( + help="Tecnichal model names separated by coma", + config_parameter="show_followers.models_to_exclude", + ) + + @api.onchange( + "show_followers_message_sent_to", + "show_followers_partner_format", + "show_followers_message_response_warning", + ) + def onchange_show_followers_message_preview(self): + self.show_followers_message_preview = ( + self.env["mail.mail"] + .with_context( + # Use current data before + partner_format=self.show_followers_partner_format or "", + msg_sent_to=self.show_followers_message_sent_to or "", + msg_warn=self.show_followers_message_response_warning or "", + ) + ._build_cc_text( + # Sample partners + self.env["res.partner"].search([("email", "!=", False)], limit=3), + ) + ) diff --git a/mail_show_follower/models/res_partner.py b/mail_show_follower/models/res_partner.py new file mode 100644 index 000000000..e9f80d43e --- /dev/null +++ b/mail_show_follower/models/res_partner.py @@ -0,0 +1,26 @@ +from odoo import models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + def _filter_shown_in_cc(self, show_internal_users): + """Get partners that should be displayed as CC on mails.""" + # Never display hidden users + result = self.filtered_domain( + [ + "|", + ("user_ids", "=", False), + ("user_ids.show_in_cc", "=", True), + ] + ) + # Remove internal users from result if needed + if not show_internal_users: + internal_users = result.filtered_domain( + [ + ("user_ids.active", "=", True), + ("user_ids.group_ids", "in", self.env.ref("base.group_user").ids), + ] + ) + result -= internal_users + return result diff --git a/mail_show_follower/models/res_users.py b/mail_show_follower/models/res_users.py new file mode 100644 index 000000000..4f9d71f3c --- /dev/null +++ b/mail_show_follower/models/res_users.py @@ -0,0 +1,7 @@ +from odoo import fields, models + + +class ResUser(models.Model): + _inherit = "res.users" + + show_in_cc = fields.Boolean(string="Show in CC", default=True) diff --git a/mail_show_follower/pyproject.toml b/mail_show_follower/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/mail_show_follower/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/mail_show_follower/readme/CONFIGURE.md b/mail_show_follower/readme/CONFIGURE.md new file mode 100644 index 000000000..b8bd36f6f --- /dev/null +++ b/mail_show_follower/readme/CONFIGURE.md @@ -0,0 +1,16 @@ +To configure this module, you need to: + +1. Go General settings/Mail/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/Mail/Show Followers on mails/Text 'Sent to' + and set the initial part of the message. +4. Go General settings/Mail/Show Followers on mails/Partner format + and choose desired fields to show on CC recipients. +5. Go General settings/Mail/Show Followers on mails/Text 'Replies' + and choose desired warn message +6. Go General settings/Mail/Show Followers in 'Models to exclude' + enter the models you want to exclude from the CC note. diff --git a/mail_show_follower/readme/CONTRIBUTORS.md b/mail_show_follower/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..07e530b88 --- /dev/null +++ b/mail_show_follower/readme/CONTRIBUTORS.md @@ -0,0 +1,5 @@ +- Valentin Vinagre \<\> +- Lorenzo Battistini +- Eduardo de Miguel \<\> +- Vincent Van Rossem \<\> +- Michel Guiheneuf \<\> diff --git a/mail_show_follower/readme/DESCRIPTION.md b/mail_show_follower/readme/DESCRIPTION.md new file mode 100644 index 000000000..e1d20cd87 --- /dev/null +++ b/mail_show_follower/readme/DESCRIPTION.md @@ -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. diff --git a/mail_show_follower/readme/USAGE.md b/mail_show_follower/readme/USAGE.md new file mode 100644 index 000000000..4ec67473b --- /dev/null +++ b/mail_show_follower/readme/USAGE.md @@ -0,0 +1,3 @@ +To use this module, you need to: + +1. Send an email from any document of odoo. diff --git a/mail_show_follower/static/description/icon.png b/mail_show_follower/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/mail_show_follower/static/description/icon.png differ diff --git a/mail_show_follower/static/description/index.html b/mail_show_follower/static/description/index.html new file mode 100644 index 000000000..1819213a0 --- /dev/null +++ b/mail_show_follower/static/description/index.html @@ -0,0 +1,470 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Mail Show Follower

+ +

Beta License: AGPL-3 OCA/mail Translate me on Weblate Try me on Runboat

+

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. +
  3. The number of followers are more than 1.
  4. +
+

Table of contents

+ +
+

Configuration

+

To configure this module, you need to:

+
    +
  1. Go General settings/Mail/Show Followers on mails/Show Internal Users +CC and set if want to show or not internal users in cc details.
  2. +
  3. 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.
  4. +
  5. Go General settings/Mail/Show Followers on mails/Text ‘Sent to’ and +set the initial part of the message.
  6. +
  7. Go General settings/Mail/Show Followers on mails/Partner format and +choose desired fields to show on CC recipients.
  8. +
  9. Go General settings/Mail/Show Followers on mails/Text ‘Replies’ and +choose desired warn message
  10. +
  11. Go General settings/Mail/Show Followers in ‘Models to exclude’ enter +the models you want to exclude from the CC note.
  12. +
+
+
+

Usage

+

To use this module, you need to:

+
    +
  1. Send an email from any document of odoo.
  2. +
+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Sygel
  • +
  • Moduon
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

Current maintainer:

+

yajo

+

This module is part of the OCA/mail project on GitHub.

+

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

+
+
+
+
+ + diff --git a/mail_show_follower/views/res_config_settings.xml b/mail_show_follower/views/res_config_settings.xml new file mode 100644 index 000000000..e1c3a7322 --- /dev/null +++ b/mail_show_follower/views/res_config_settings.xml @@ -0,0 +1,88 @@ + + + + res.config.settings.view.form.inherit.mail.show.follower + res.config.settings + + + + +
+
+
+
+
+
+
+
+
+
+
diff --git a/mail_show_follower/views/res_users.xml b/mail_show_follower/views/res_users.xml new file mode 100644 index 000000000..a05a6ebda --- /dev/null +++ b/mail_show_follower/views/res_users.xml @@ -0,0 +1,13 @@ + + + + view.users.form.mail.show.follower + res.users + + + + + + + +