mirror of https://github.com/OCA/social.git
[ADD] mail_send_bcc
parent
fa3d7d2d66
commit
64ccd51277
|
@ -0,0 +1 @@
|
||||||
|
from . import models
|
|
@ -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,
|
||||||
|
}
|
|
@ -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"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
from . import ir_mail_server
|
|
@ -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)
|
|
@ -0,0 +1 @@
|
||||||
|
* Sylvain LE GAL (https://www.twitter.com/legalsylvain)
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
* Add the possibility to select if the mail is sent in "Cc" or in "Bcc" mode.
|
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
Loading…
Reference in New Issue