diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-06-02 15:12:47 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-06-02 15:12:47 +0200 |
| commit | a36f6dbc29fddbcc2ea51adfeb2cb6e5db5784c6 (patch) | |
| tree | 1a73857c161f8bc7790e099f85cc81c7310a3bac /addons/mail/models/mail_thread.py | |
| parent | 06989f697885db5aa5b5890e568a5e661570d31e (diff) | |
| parent | 928bc262a6389fdf64378f3e2505d182aa1349b5 (diff) | |
[MERGE] forward port of branch 9.0 up to 928bc26
Diffstat (limited to 'addons/mail/models/mail_thread.py')
| -rw-r--r-- | addons/mail/models/mail_thread.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index 15cd22f2350..fb2b5cbf846 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -1694,7 +1694,7 @@ class MailThread(models.AbstractModel): partner_to_subscribe = partner_ids if self._context.get('mail_post_autofollow_partner_ids'): partner_to_subscribe = filter(lambda item: item in self._context.get('mail_post_autofollow_partner_ids'), partner_ids) - self.message_subscribe(list(partner_to_subscribe)) + self.message_subscribe(list(partner_to_subscribe), force=False) # _mail_flat_thread: automatically set free messages to the first posted message MailMessage = self.env['mail.message'] @@ -1746,7 +1746,7 @@ class MailThread(models.AbstractModel): # done with SUPERUSER_ID, because on some models users can post only with read access, not necessarily write access self.sudo().write({'message_last_post': fields.Datetime.now()}) if new_message.author_id and model and self.ids and message_type != 'notification' and not self._context.get('mail_create_nosubscribe'): - self.message_subscribe([new_message.author_id.id]) + self.message_subscribe([new_message.author_id.id], force=False) return new_message @api.multi |
