diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-07-13 16:36:21 +0200 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-07-19 14:01:58 +0200 |
| commit | 0f65c4ab3b5b5649aa4777d6c8d6d98d78929e21 (patch) | |
| tree | 2e25443130c7be5d457b866b87a8f8d202d312ba /addons/mail/static/src/js/models | |
| parent | 68c30ef4b30e12a7ac64347286e3a839330ab3cc (diff) | |
[FIX] mail: group mail failures of channels
Before this commit, mail failures were correctly grouped in the
systray messaging menu, except for mail failures coming from channels.
This commit fixes grouping for mail failures from channel.
Diffstat (limited to 'addons/mail/static/src/js/models')
| -rw-r--r-- | addons/mail/static/src/js/models/mail_failure.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/mail/static/src/js/models/mail_failure.js b/addons/mail/static/src/js/models/mail_failure.js index fe6241ff032..390b195f8d9 100644 --- a/addons/mail/static/src/js/models/mail_failure.js +++ b/addons/mail/static/src/js/models/mail_failure.js @@ -88,12 +88,12 @@ var MailFailure = Class.extend(Mixins.EventDispatcherMixin, ServicesMixin, { return preview; }, /** - * Tell whether the mail failure comes from a message in a document thread. + * Tell whether the mail failure comes from a message in a document. * * @returns {boolean} */ - isLinkedToDocumentThread: function () { - return !!(this._documentModel !== 'mail.channel' && this._documentID); + isLinkedToDocument: function () { + return !!(this._documentModel && this._documentID); }, }); |
