diff options
| author | Xavier Dubuc <xdu@odoo.com> | 2020-09-18 10:09:04 +0000 |
|---|---|---|
| committer | Xavier Dubuc <xdu@odoo.com> | 2020-09-23 18:53:51 +0000 |
| commit | 4f12598008eba2bb2e65016e12acf3edd5d83f8c (patch) | |
| tree | 19377b572c6f506aab32ebfd948f222343f77783 /addons/mail/static/src/components/message | |
| parent | 318135d38a743effbe7067ded4f3e6cb5b1d14e0 (diff) | |
[FIX] mail: use compute fields for identifying relations
(in message seen indicators)
task-2335647
closes odoo/odoo#58373
X-original-commit: 3d4ff42f4474a5761c9e0737297d973992a2fcc2
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/message')
| -rw-r--r-- | addons/mail/static/src/components/message/message_tests.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/mail/static/src/components/message/message_tests.js b/addons/mail/static/src/components/message/message_tests.js index dedc9434f2a..1737d7ec291 100644 --- a/addons/mail/static/src/components/message/message_tests.js +++ b/addons/mail/static/src/components/message/message_tests.js @@ -590,8 +590,8 @@ QUnit.test('do not show messaging seen indicator if before last seen by all mess const thread = this.env.models['mail.thread'].create({ id: 11, messageSeenIndicators: [['insert', { - id: this.env.models['mail.message_seen_indicator'].computeId(99, 11), - message: [['insert', { id: 99 }]], + channelId: 11, + messageId: 99, }]], model: 'mail.channel', }); @@ -670,8 +670,8 @@ QUnit.test('only show messaging seen indicator if authored by me, after last see }, ]]], messageSeenIndicators: [['insert', { - id: this.env.models['mail.message_seen_indicator'].computeId(100, 11), - message: [['insert', { id: 100 }]], + channelId: 11, + messageId: 100, }]], model: 'mail.channel', }); |
