mirror of https://github.com/OCA/social.git
commit
272c5956a8
|
@ -5,7 +5,7 @@
|
|||
{
|
||||
"name": "Email tracking",
|
||||
"summary": "Email tracking system for all mails sent",
|
||||
"version": "11.0.2.1.0",
|
||||
"version": "11.0.2.1.1",
|
||||
"category": "Social Network",
|
||||
"website": "http://github.com/OCA/social",
|
||||
"author": "Tecnativa, "
|
||||
|
|
|
@ -54,8 +54,8 @@ msgid "Bounced"
|
|||
msgstr ""
|
||||
|
||||
#. module: mail_tracking
|
||||
#: code:addons/mail_tracking/models/mail_thread.py:39
|
||||
#: code:addons/mail_tracking/models/mail_thread.py:43
|
||||
#: code:addons/mail_tracking/models/mail_thread.py:44
|
||||
#: code:addons/mail_tracking/models/mail_thread.py:48
|
||||
#: model:ir.model.fields,field_description:mail_tracking.field_mail_compose_message_email_cc
|
||||
#: model:ir.model.fields,field_description:mail_tracking.field_mail_message_email_cc
|
||||
#, python-format
|
||||
|
|
|
@ -11,8 +11,13 @@ class MailThread(models.AbstractModel):
|
|||
|
||||
@api.multi
|
||||
@api.returns('self', lambda value: value.id)
|
||||
def message_post(self, **kwargs):
|
||||
new_message = super().message_post(**kwargs)
|
||||
def message_post(self, body='', subject=None, message_type='notification',
|
||||
subtype=None, parent_id=False, attachments=None,
|
||||
content_subtype='html', **kwargs):
|
||||
new_message = super().message_post(
|
||||
body=body, subject=subject, message_type=message_type,
|
||||
subtype=subtype, parent_id=parent_id, attachments=attachments,
|
||||
content_subtype=content_subtype, **kwargs)
|
||||
email_cc = kwargs.get('cc')
|
||||
if email_cc:
|
||||
new_message.sudo().write({
|
||||
|
|
Loading…
Reference in New Issue