summaryrefslogtreecommitdiff
path: root/addons/mail/models/mail_thread.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-04-09 12:16:06 +0200
committerChristophe Simonis <chs@odoo.com>2019-04-09 12:16:06 +0200
commit6c8e30cae6ca5e4fe12e287ebd29d76544be57a3 (patch)
treecce147099046ba971a817b2a5b70fbd2f054c9d0 /addons/mail/models/mail_thread.py
parent288d82a67137e206d30aaf572584e99cbee997b2 (diff)
parent6d4940675f18dbb98d1f3882863ee10e7a1e3a49 (diff)
[MERGE] forward port branch saas-12.1 up to 6d4940675f1
Diffstat (limited to 'addons/mail/models/mail_thread.py')
-rw-r--r--addons/mail/models/mail_thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py
index 79cfb230a6b..8e35a8fda18 100644
--- a/addons/mail/models/mail_thread.py
+++ b/addons/mail/models/mail_thread.py
@@ -237,7 +237,7 @@ class MailThread(models.AbstractModel):
@api.model
def _search_message_has_error(self, operator, operand):
- return [('message_ids.has_error', operator, operand)]
+ return ['&', ('message_ids.has_error', operator, operand), ('message_ids.author_id', '=', self.env.user.partner_id.id)]
@api.multi
def _compute_message_attachment_count(self):