diff options
| author | Xavier Dubuc <xdu@odoo.com> | 2020-07-17 10:38:05 +0000 |
|---|---|---|
| committer | Xavier Dubuc <xdu@odoo.com> | 2020-07-30 09:23:02 +0000 |
| commit | e244bfa1c819e804b120ad49f37fce0aa802e529 (patch) | |
| tree | ac8e2b017103fb3821d1d89b04729ee756eae778 /addons/mail/static/src/components | |
| parent | dcf1f48ee6729780d1d8a4fb88bf23138744ae76 (diff) | |
[FIX] mail: do not fetch 'user_notification' messages in thread
task-2296856
See odoo/enterprise#12095
closes odoo/odoo#55189
X-original-commit: 5aaff1547d04bccf20ef333f515811570e8b8e22
Related: odoo/enterprise#12100
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components')
| -rw-r--r-- | addons/mail/static/src/components/chatter/chatter_tests.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/addons/mail/static/src/components/chatter/chatter_tests.js b/addons/mail/static/src/components/chatter/chatter_tests.js index 2043b5eece2..36b87b65f5d 100644 --- a/addons/mail/static/src/components/chatter/chatter_tests.js +++ b/addons/mail/static/src/components/chatter/chatter_tests.js @@ -340,6 +340,32 @@ QUnit.test('composer show/hide on log note/send message', async function (assert ); }); +QUnit.test('should not display user notification messages in chatter', async function (assert) { + assert.expect(1); + + this.data['mail.message'].records = [{ + author_id: [7, "Demo"], + body: "<p>User notification</p>", + date: "2019-04-20 11:00:00", + id: 102, + message_type: 'user_notification', + model: 'res.partner', + res_id: 100, + }]; + await this.start(); + const chatter = this.env.models['mail.chatter'].create({ + threadId: 100, + threadModel: 'res.partner', + }); + await this.createChatterComponent({ chatter }); + + assert.containsNone( + document.body, + '.o_Message', + "should display no messages" + ); +}); + }); }); }); |
