From 1e37196e8cdc1d5b2ddbd0439af7c54e2c712273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 13 Sep 2016 10:53:40 +0200 Subject: [PATCH] [IMP] mail: remove needaction on last found message when assigning as now an email is sent --- addons/mail/models/mail_thread.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index cd1b7be7aa7..d75011b92d7 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -2024,13 +2024,6 @@ class MailThread(models.AbstractModel): auto_delete=True, auto_delete_message=True, subtype_id=self.env.ref('mail.mt_note').id) - messages = self.env['mail.message'].sudo().search([ - ('model', '=', self._name), - ('res_id', '=', record.id), - ('subtype_id', '!=', False), - ('subtype_id.internal', '=', False)], limit=1) - if messages: - messages.write({'needaction_partner_ids': [(4, pid) for pid in partner_ids]}) @api.multi def message_auto_subscribe(self, updated_fields, values=None):