From 64ccd51277d9ec70b84303b71451bf69743e9f2d Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Wed, 13 Nov 2019 15:26:07 +0100 Subject: [PATCH 01/13] [ADD] mail_send_bcc --- mail_send_copy/README.rst | 0 mail_send_copy/__init__.py | 1 + mail_send_copy/__manifest__.py | 15 ++++++++++++ mail_send_copy/i18n/fr.po | 27 +++++++++++++++++++++ mail_send_copy/models/__init__.py | 1 + mail_send_copy/models/ir_mail_server.py | 18 ++++++++++++++ mail_send_copy/readme/CONTRIBUTORS.rst | 1 + mail_send_copy/readme/DESCRIPTION.rst | 15 ++++++++++++ mail_send_copy/readme/ROADMAP.rst | 1 + mail_send_copy/static/description/icon.png | Bin 0 -> 3711 bytes 10 files changed, 79 insertions(+) create mode 100644 mail_send_copy/README.rst create mode 100644 mail_send_copy/__init__.py create mode 100644 mail_send_copy/__manifest__.py create mode 100644 mail_send_copy/i18n/fr.po create mode 100644 mail_send_copy/models/__init__.py create mode 100644 mail_send_copy/models/ir_mail_server.py create mode 100644 mail_send_copy/readme/CONTRIBUTORS.rst create mode 100644 mail_send_copy/readme/DESCRIPTION.rst create mode 100644 mail_send_copy/readme/ROADMAP.rst create mode 100644 mail_send_copy/static/description/icon.png diff --git a/mail_send_copy/README.rst b/mail_send_copy/README.rst new file mode 100644 index 000000000..e69de29bb diff --git a/mail_send_copy/__init__.py b/mail_send_copy/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/mail_send_copy/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/mail_send_copy/__manifest__.py b/mail_send_copy/__manifest__.py new file mode 100644 index 000000000..91e081b89 --- /dev/null +++ b/mail_send_copy/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright (C) 2014 - Today: GRAP (http://www.grap.coop) +# @author: Sylvain LE GAL (https://twitter.com/legalsylvain) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Mail - Send Email Copy", + "summary": "Send to you a copy of each mail sent by Odoo", + "version": "12.0.1.0.0", + "category": "Social Network", + "author": "GRAP," + "Odoo Community Association (OCA)", + "website": "https://www.github.com/OCA/server-tools", + "license": "AGPL-3", + "depends": ["mail"], + "installable": True, +} diff --git a/mail_send_copy/i18n/fr.po b/mail_send_copy/i18n/fr.po new file mode 100644 index 000000000..94db95fc0 --- /dev/null +++ b/mail_send_copy/i18n/fr.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_send_copy +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-11-13 10:48+0000\n" +"PO-Revision-Date: 2019-11-13 10:48+0000\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_send_copy +#: model:ir.model,name:mail_send_copy.model_ir_mail_server +msgid "Mail Server" +msgstr "Serveur d'email" + +#. module: mail_send_copy +#: model:ir.model,name:mail_send_copy.model_res_users +msgid "Users" +msgstr "Utilisateurs" + diff --git a/mail_send_copy/models/__init__.py b/mail_send_copy/models/__init__.py new file mode 100644 index 000000000..abbcb50bd --- /dev/null +++ b/mail_send_copy/models/__init__.py @@ -0,0 +1 @@ +from . import ir_mail_server diff --git a/mail_send_copy/models/ir_mail_server.py b/mail_send_copy/models/ir_mail_server.py new file mode 100644 index 000000000..67feeac53 --- /dev/null +++ b/mail_send_copy/models/ir_mail_server.py @@ -0,0 +1,18 @@ +# Copyright (C) 2014 - Today: GRAP (http://www.grap.coop) +# @author: Sylvain LE GAL (https://twitter.com/legalsylvain) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import api, models +from email.utils import COMMASPACE + + +class IrMailServer(models.Model): + _inherit = "ir.mail_server" + + @api.model + def send_email(self, message, *args, **kwargs): + if message["Bcc"]: + message["Bcc"] = message["Bcc"].join(COMMASPACE, message["From"]) + else: + message["Bcc"] = message["From"] + return super(IrMailServer, self).send_email(message, *args, **kwargs) diff --git a/mail_send_copy/readme/CONTRIBUTORS.rst b/mail_send_copy/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..e1525ce04 --- /dev/null +++ b/mail_send_copy/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Sylvain LE GAL (https://www.twitter.com/legalsylvain) diff --git a/mail_send_copy/readme/DESCRIPTION.rst b/mail_send_copy/readme/DESCRIPTION.rst new file mode 100644 index 000000000..c0c54bf41 --- /dev/null +++ b/mail_send_copy/readme/DESCRIPTION.rst @@ -0,0 +1,15 @@ +This module extends the functionality of Mail Module to allow users to +receive each mail sent by Odoo, in BCC mode. + +Use Case +-------- + +This feature can be usefull for users: + +* to be sure the mail was sent because Odoo send mail depending of + some partner parameters + +* to have the whole conversation if the partner writes an answer and if + mailbox manages thread by object + +* to be sure smtp server works diff --git a/mail_send_copy/readme/ROADMAP.rst b/mail_send_copy/readme/ROADMAP.rst new file mode 100644 index 000000000..4580be0e0 --- /dev/null +++ b/mail_send_copy/readme/ROADMAP.rst @@ -0,0 +1 @@ +* Add the possibility to select if the mail is sent in "Cc" or in "Bcc" mode. diff --git a/mail_send_copy/static/description/icon.png b/mail_send_copy/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..9414ac9fdfeac29b20500deab9e1c5f5cda26023 GIT binary patch literal 3711 zcmZu!c|4Te7k{jYK_N!gHc9( zMEW{=xZQJec0~mYx*@<7PLNs}=3%e43cL+CECu=sW89oCUm<&0&oGLWUJAbG_tD(o z=8R=*JbhiFsFk?yBqt%${14qT&Z=K76%XgakiL~kp&EBZk?2cqoYb5qx-{6BSd?3!AlIZ)G`0B=vs*gLJ zg1^t~k_Vra+dqhiP?^@#XTqZQ2K#Lsb(dzUY^OQWR5{J~^)Nj$9;0RVxv`w)&`u;n z^y%rTkEf?eu_i*iOftGSC@3hk4Dz(Av%Ou_65dOQEq?^4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r`1beRfmPT=-%p)$RI%2B@8UUOB9dS29-!PWT zy5V9+BeLaD-!m;eC!^u$xcFdJ+n@(e|Ff@a(ewE*y^aj_B0nN*DX_V{2TCI=C$~FM zAK`~>pe8#E6>NiLc&IZ5HKKePZ9q(?h$)Gc-N_@~KzH9sR?U4b8KRa4@;P{5h}FTz8uq z{ccAfP2%N(xBuz|0R$gsiuOloY|juW}t695|5|v0s^fihxvw5^#2L zAtiS7HYSO7FYA5Z-gXCx1JqvzkHRA$y7joOs)`v5;UA3FHWtaYN*$P96B2Tk&RyEs zVNG%KWYq+H5rm!we3N`UnJ@Z(kE#Fr!irH}Iy_;Wd}nj}_ark0d@KS;Z6mE}O{duZ E0qIpG9{>OV literal 0 HcmV?d00001 From 964779c997c970ec450ecb53561c75f78ab58cc6 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Tue, 1 Sep 2020 10:07:52 +0200 Subject: [PATCH 02/13] [FIX] compatibility between mail_send_copy and mail_tracking together --- mail_send_copy/models/ir_mail_server.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/mail_send_copy/models/ir_mail_server.py b/mail_send_copy/models/ir_mail_server.py index 67feeac53..a2d988b36 100644 --- a/mail_send_copy/models/ir_mail_server.py +++ b/mail_send_copy/models/ir_mail_server.py @@ -11,8 +11,11 @@ class IrMailServer(models.Model): @api.model def send_email(self, message, *args, **kwargs): - if message["Bcc"]: - message["Bcc"] = message["Bcc"].join(COMMASPACE, message["From"]) - else: - message["Bcc"] = message["From"] - return super(IrMailServer, self).send_email(message, *args, **kwargs) + do_not_send_copy = self.env.context.get("do_not_send_copy", False) + if not do_not_send_copy: + if message["Bcc"]: + message["Bcc"] = message["Bcc"].join( + COMMASPACE, message["From"]) + else: + message["Bcc"] = message["From"] + return super().send_email(message, *args, **kwargs) From c60155a00e9213b18fa50fe0179f7891914f3e2b Mon Sep 17 00:00:00 2001 From: oca-travis Date: Sat, 9 Jan 2021 10:26:39 +0000 Subject: [PATCH 03/13] [UPD] Update mail_send_copy.pot --- mail_send_copy/i18n/fr.po | 8 +++----- mail_send_copy/i18n/mail_send_copy.pot | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 mail_send_copy/i18n/mail_send_copy.pot diff --git a/mail_send_copy/i18n/fr.po b/mail_send_copy/i18n/fr.po index 94db95fc0..39f7d130d 100644 --- a/mail_send_copy/i18n/fr.po +++ b/mail_send_copy/i18n/fr.po @@ -10,6 +10,7 @@ msgstr "" "PO-Revision-Date: 2019-11-13 10:48+0000\n" "Last-Translator: <>\n" "Language-Team: \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -20,8 +21,5 @@ msgstr "" msgid "Mail Server" msgstr "Serveur d'email" -#. module: mail_send_copy -#: model:ir.model,name:mail_send_copy.model_res_users -msgid "Users" -msgstr "Utilisateurs" - +#~ msgid "Users" +#~ msgstr "Utilisateurs" diff --git a/mail_send_copy/i18n/mail_send_copy.pot b/mail_send_copy/i18n/mail_send_copy.pot new file mode 100644 index 000000000..02fc60b58 --- /dev/null +++ b/mail_send_copy/i18n/mail_send_copy.pot @@ -0,0 +1,20 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_send_copy +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.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_send_copy +#: model:ir.model,name:mail_send_copy.model_ir_mail_server +msgid "Mail Server" +msgstr "" + From 8ec33e23ccbc01f5686c38108b32d7de86630aff Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sat, 9 Jan 2021 10:38:27 +0000 Subject: [PATCH 04/13] [UPD] README.rst --- mail_send_copy/README.rst | 92 ++++ mail_send_copy/static/description/index.html | 438 +++++++++++++++++++ 2 files changed, 530 insertions(+) create mode 100644 mail_send_copy/static/description/index.html diff --git a/mail_send_copy/README.rst b/mail_send_copy/README.rst index e69de29bb..ae7522b40 100644 --- a/mail_send_copy/README.rst +++ b/mail_send_copy/README.rst @@ -0,0 +1,92 @@ +====================== +Mail - Send Email Copy +====================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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/12.0/mail_send_copy + :alt: OCA/social +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_send_copy + :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/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends the functionality of Mail Module to allow users to +receive each mail sent by Odoo, in BCC mode. + +Use Case +-------- + +This feature can be usefull for users: + +* to be sure the mail was sent because Odoo send mail depending of + some partner parameters + +* to have the whole conversation if the partner writes an answer and if + mailbox manages thread by object + +* to be sure smtp server works + +**Table of contents** + +.. contents:: + :local: + +Known issues / Roadmap +====================== + +* Add the possibility to select if the mail is sent in "Cc" or in "Bcc" mode. + +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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* GRAP + +Contributors +~~~~~~~~~~~~ + +* Sylvain LE GAL (https://www.twitter.com/legalsylvain) + +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. + +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_send_copy/static/description/index.html b/mail_send_copy/static/description/index.html new file mode 100644 index 000000000..c1a8036da --- /dev/null +++ b/mail_send_copy/static/description/index.html @@ -0,0 +1,438 @@ + + + + + + +Mail - Send Email Copy + + + +
+

Mail - Send Email Copy

+ + +

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runbot

+

This module extends the functionality of Mail Module to allow users to +receive each mail sent by Odoo, in BCC mode.

+
+

Use Case

+

This feature can be usefull for users:

+
    +
  • to be sure the mail was sent because Odoo send mail depending of +some partner parameters
  • +
  • to have the whole conversation if the partner writes an answer and if +mailbox manages thread by object
  • +
  • to be sure smtp server works
  • +
+

Table of contents

+ +
+

Known issues / Roadmap

+
    +
  • Add the possibility to select if the mail is sent in “Cc” or in “Bcc” mode.
  • +
+
+
+

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 smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • GRAP
  • +
+
+ +
+

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.

+

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.

+
+
+
+
+ + From baff06a316a7e1b48305fd5e9128c59f30f2d492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20BEAU?= Date: Sat, 9 Jan 2021 15:47:50 +0100 Subject: [PATCH 05/13] [IMP] mail_send_copy: black, isort, prettier --- mail_send_copy/__manifest__.py | 5 ++--- mail_send_copy/models/ir_mail_server.py | 6 +++--- setup/mail_send_copy/odoo/addons/mail_send_copy | 1 + setup/mail_send_copy/setup.py | 6 ++++++ 4 files changed, 12 insertions(+), 6 deletions(-) create mode 120000 setup/mail_send_copy/odoo/addons/mail_send_copy create mode 100644 setup/mail_send_copy/setup.py diff --git a/mail_send_copy/__manifest__.py b/mail_send_copy/__manifest__.py index 91e081b89..76a91a78f 100644 --- a/mail_send_copy/__manifest__.py +++ b/mail_send_copy/__manifest__.py @@ -6,9 +6,8 @@ "summary": "Send to you a copy of each mail sent by Odoo", "version": "12.0.1.0.0", "category": "Social Network", - "author": "GRAP," - "Odoo Community Association (OCA)", - "website": "https://www.github.com/OCA/server-tools", + "author": "GRAP," "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/social", "license": "AGPL-3", "depends": ["mail"], "installable": True, diff --git a/mail_send_copy/models/ir_mail_server.py b/mail_send_copy/models/ir_mail_server.py index a2d988b36..3ae8cee11 100644 --- a/mail_send_copy/models/ir_mail_server.py +++ b/mail_send_copy/models/ir_mail_server.py @@ -2,9 +2,10 @@ # @author: Sylvain LE GAL (https://twitter.com/legalsylvain) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import api, models from email.utils import COMMASPACE +from odoo import api, models + class IrMailServer(models.Model): _inherit = "ir.mail_server" @@ -14,8 +15,7 @@ class IrMailServer(models.Model): do_not_send_copy = self.env.context.get("do_not_send_copy", False) if not do_not_send_copy: if message["Bcc"]: - message["Bcc"] = message["Bcc"].join( - COMMASPACE, message["From"]) + message["Bcc"] = message["Bcc"].join(COMMASPACE, message["From"]) else: message["Bcc"] = message["From"] return super().send_email(message, *args, **kwargs) diff --git a/setup/mail_send_copy/odoo/addons/mail_send_copy b/setup/mail_send_copy/odoo/addons/mail_send_copy new file mode 120000 index 000000000..01fab56f8 --- /dev/null +++ b/setup/mail_send_copy/odoo/addons/mail_send_copy @@ -0,0 +1 @@ +../../../../mail_send_copy \ No newline at end of file diff --git a/setup/mail_send_copy/setup.py b/setup/mail_send_copy/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/mail_send_copy/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From 31227022387251a1b7569efae9f50a954b258170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20BEAU?= Date: Sat, 9 Jan 2021 15:47:50 +0100 Subject: [PATCH 06/13] [MIG] mail_send_copy: Migration to 14.0 --- mail_send_copy/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_send_copy/__manifest__.py b/mail_send_copy/__manifest__.py index 76a91a78f..1a767d8c1 100644 --- a/mail_send_copy/__manifest__.py +++ b/mail_send_copy/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Mail - Send Email Copy", "summary": "Send to you a copy of each mail sent by Odoo", - "version": "12.0.1.0.0", + "version": "14.0.1.0.0", "category": "Social Network", "author": "GRAP," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/social", From 8c7a639b8f26a3f5848f7b0e775fb254a57338bc Mon Sep 17 00:00:00 2001 From: oca-travis Date: Sun, 10 Jan 2021 14:03:09 +0000 Subject: [PATCH 07/13] [UPD] Update mail_send_copy.pot --- mail_send_copy/i18n/mail_send_copy.pot | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/mail_send_copy/i18n/mail_send_copy.pot b/mail_send_copy/i18n/mail_send_copy.pot index 02fc60b58..bf95aa3d7 100644 --- a/mail_send_copy/i18n/mail_send_copy.pot +++ b/mail_send_copy/i18n/mail_send_copy.pot @@ -1,20 +1,34 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * mail_send_copy +# * mail_send_copy # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\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_send_copy +#: model:ir.model.fields,field_description:mail_send_copy.field_ir_mail_server__display_name +msgid "Display Name" +msgstr "" + +#. module: mail_send_copy +#: model:ir.model.fields,field_description:mail_send_copy.field_ir_mail_server__id +msgid "ID" +msgstr "" + +#. module: mail_send_copy +#: model:ir.model.fields,field_description:mail_send_copy.field_ir_mail_server____last_update +msgid "Last Modified on" +msgstr "" + #. module: mail_send_copy #: model:ir.model,name:mail_send_copy.model_ir_mail_server msgid "Mail Server" msgstr "" - From 4b8c47c226f0521ce814a8c4dc52114208ed3aec Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 10 Jan 2021 14:05:58 +0000 Subject: [PATCH 08/13] [UPD] README.rst --- mail_send_copy/README.rst | 10 +++++----- mail_send_copy/static/description/index.html | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mail_send_copy/README.rst b/mail_send_copy/README.rst index ae7522b40..31cc8a8e4 100644 --- a/mail_send_copy/README.rst +++ b/mail_send_copy/README.rst @@ -14,13 +14,13 @@ Mail - Send Email Copy :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/12.0/mail_send_copy + :target: https://github.com/OCA/social/tree/14.0/mail_send_copy :alt: OCA/social .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_send_copy + :target: https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_send_copy :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/12.0 + :target: https://runbot.odoo-community.org/runbot/205/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -57,7 +57,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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -87,6 +87,6 @@ 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. -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_send_copy/static/description/index.html b/mail_send_copy/static/description/index.html index c1a8036da..e95316fd8 100644 --- a/mail_send_copy/static/description/index.html +++ b/mail_send_copy/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runbot

This module extends the functionality of Mail Module to allow users to receive each mail sent by Odoo, in BCC mode.

@@ -404,7 +404,7 @@ mailbox manages thread by object

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 smashing it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -428,7 +428,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

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.

-

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.

From be14cca8b50642dd31b4d4f9ac17078e2bbd4183 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sun, 10 Jan 2021 15:42:53 +0000 Subject: [PATCH 09/13] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: social-14.0/social-14.0-mail_send_copy Translate-URL: https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_send_copy/ --- mail_send_copy/i18n/fr.po | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mail_send_copy/i18n/fr.po b/mail_send_copy/i18n/fr.po index 39f7d130d..be775e023 100644 --- a/mail_send_copy/i18n/fr.po +++ b/mail_send_copy/i18n/fr.po @@ -16,6 +16,21 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" +#. module: mail_send_copy +#: model:ir.model.fields,field_description:mail_send_copy.field_ir_mail_server__display_name +msgid "Display Name" +msgstr "" + +#. module: mail_send_copy +#: model:ir.model.fields,field_description:mail_send_copy.field_ir_mail_server__id +msgid "ID" +msgstr "" + +#. module: mail_send_copy +#: model:ir.model.fields,field_description:mail_send_copy.field_ir_mail_server____last_update +msgid "Last Modified on" +msgstr "" + #. module: mail_send_copy #: model:ir.model,name:mail_send_copy.model_ir_mail_server msgid "Mail Server" From 0e5a9f90882c3f567a8523b9c64cbebe02ac08f7 Mon Sep 17 00:00:00 2001 From: Pierre Verkest Date: Wed, 12 May 2021 15:05:28 +0200 Subject: [PATCH 10/13] [14.0] mail_send_copy: description wording --- mail_send_copy/readme/DESCRIPTION.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mail_send_copy/readme/DESCRIPTION.rst b/mail_send_copy/readme/DESCRIPTION.rst index c0c54bf41..72055e370 100644 --- a/mail_send_copy/readme/DESCRIPTION.rst +++ b/mail_send_copy/readme/DESCRIPTION.rst @@ -1,5 +1,12 @@ -This module extends the functionality of Mail Module to allow users to -receive each mail sent by Odoo, in BCC mode. + +This module extends the functionality of Mail Module adding sender in +BBC field to receive a copy of each mail sent by Odoo. + +.. warning:: + + Sender can be different from the current user according email + template in use. + Use Case -------- From 374781e2b4d05c8280963b449f4213093d7faba6 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 25 May 2021 17:40:43 +0000 Subject: [PATCH 11/13] [UPD] README.rst --- mail_send_copy/README.rst | 11 +++++++++-- mail_send_copy/static/description/index.html | 9 +++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/mail_send_copy/README.rst b/mail_send_copy/README.rst index 31cc8a8e4..f45386cdf 100644 --- a/mail_send_copy/README.rst +++ b/mail_send_copy/README.rst @@ -25,8 +25,15 @@ Mail - Send Email Copy |badge1| |badge2| |badge3| |badge4| |badge5| -This module extends the functionality of Mail Module to allow users to -receive each mail sent by Odoo, in BCC mode. + +This module extends the functionality of Mail Module adding sender in +BBC field to receive a copy of each mail sent by Odoo. + +.. warning:: + + Sender can be different from the current user according email + template in use. + Use Case -------- diff --git a/mail_send_copy/static/description/index.html b/mail_send_copy/static/description/index.html index e95316fd8..f8a0280ea 100644 --- a/mail_send_copy/static/description/index.html +++ b/mail_send_copy/static/description/index.html @@ -368,8 +368,13 @@ ul.auto-toc { !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runbot

-

This module extends the functionality of Mail Module to allow users to -receive each mail sent by Odoo, in BCC mode.

+

This module extends the functionality of Mail Module adding sender in +BBC field to receive a copy of each mail sent by Odoo.

+
+

Warning

+

Sender can be different from the current user according email +template in use.

+

Use Case

This feature can be usefull for users:

From 21a8f60ef6f84ecd92086d7c652da8440277e6ce Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 25 May 2021 17:40:43 +0000 Subject: [PATCH 12/13] mail_send_copy 14.0.1.0.1 --- mail_send_copy/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_send_copy/__manifest__.py b/mail_send_copy/__manifest__.py index 1a767d8c1..9dff3e2b7 100644 --- a/mail_send_copy/__manifest__.py +++ b/mail_send_copy/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Mail - Send Email Copy", "summary": "Send to you a copy of each mail sent by Odoo", - "version": "14.0.1.0.0", + "version": "14.0.1.0.1", "category": "Social Network", "author": "GRAP," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/social", From e0b6eb756c36a16da20cb32b9ae7a683a372f109 Mon Sep 17 00:00:00 2001 From: Nils Hamerlinck Date: Sun, 18 Sep 2022 20:22:13 +0700 Subject: [PATCH 13/13] [MIG] mail_send_copy: Migration to 15.0 --- mail_send_copy/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_send_copy/__manifest__.py b/mail_send_copy/__manifest__.py index 9dff3e2b7..b6517654c 100644 --- a/mail_send_copy/__manifest__.py +++ b/mail_send_copy/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Mail - Send Email Copy", "summary": "Send to you a copy of each mail sent by Odoo", - "version": "14.0.1.0.1", + "version": "15.0.1.0.0", "category": "Social Network", "author": "GRAP," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/social",