summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_view/thread_view.js
diff options
context:
space:
mode:
authorXavier Dubuc <xdu@odoo.com>2020-10-15 13:16:02 +0000
committerXavier Dubuc <xdu@odoo.com>2020-10-28 08:05:31 +0000
commit65ffb692164d5370411059dca63223c08c8dc81f (patch)
tree60d4407c43204f515ccca6d45f5520814de86e12 /addons/mail/static/src/models/thread_view/thread_view.js
parentb261ab598c7a18bbe6590114aa171d61ea9c2767 (diff)
[FIX] mail: do not consider message with subtype as empty
task-2362022 closes odoo/odoo#60088 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_view/thread_view.js')
-rw-r--r--addons/mail/static/src/models/thread_view/thread_view.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/mail/static/src/models/thread_view/thread_view.js b/addons/mail/static/src/models/thread_view/thread_view.js
index f381f3d86f9..6e875133a4b 100644
--- a/addons/mail/static/src/models/thread_view/thread_view.js
+++ b/addons/mail/static/src/models/thread_view/thread_view.js
@@ -236,6 +236,9 @@ function factory(dependencies) {
messages: many2many('mail.message', {
related: 'threadCache.messages',
}),
+ nonEmptyMessages: many2many('mail.message', {
+ related: 'threadCache.nonEmptyMessages',
+ }),
/**
* Not a real field, used to trigger `_onThreadCacheChanged` when one of
* the dependencies changes.