summaryrefslogtreecommitdiff
path: root/addons/sms/static/src
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2020-08-28 10:16:37 +0000
committerSébastien Theys <seb@odoo.com>2020-08-28 13:43:54 +0000
commitf9ee1cf5f904116e4d1d70a8eaf4ee1d58b18a3a (patch)
tree89425d0677083bb9489e42d47521c4bcf1e4ff44 /addons/sms/static/src
parent98e12901c97a67dc87f21647473754cd6f384d4a (diff)
[FIX] mail, *: rename thread viewer to thread view
The "viewer" should be the "parent" not the view itself. This distinction will become important in a future commit to allow viewers to not display the view in some situations. Rename done as a standalone commit to ease diff readability. Part of task-2310623 closes odoo/odoo#56737 X-original-commit: 1b811e6a972d72de02965adda67c5b039bee023f Related: odoo/enterprise#12756 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/sms/static/src')
-rw-r--r--addons/sms/static/src/components/message/message_tests.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/sms/static/src/components/message/message_tests.js b/addons/sms/static/src/components/message/message_tests.js
index 91a2926626f..866fa59cf86 100644
--- a/addons/sms/static/src/components/message/message_tests.js
+++ b/addons/sms/static/src/components/message/message_tests.js
@@ -46,7 +46,7 @@ QUnit.test('Notification Sent', async function (assert) {
assert.expect(9);
await this.start();
- const threadViewer = this.env.models['mail.thread_viewer'].create({
+ const threadView = this.env.models['mail.thread_view'].create({
thread: [['create', {
id: 11,
model: 'mail.channel',
@@ -61,10 +61,10 @@ QUnit.test('Notification Sent', async function (assert) {
notification_type: 'sms',
partner: [['insert', { id: 12, name: "Someone" }]],
}]],
- originThread: [['link', threadViewer.thread]]
+ originThread: [['link', threadView.thread]]
});
await this.createMessageComponent(message, {
- threadViewerLocalId: threadViewer.localId
+ threadViewLocalId: threadView.localId
});
assert.containsOnce(
@@ -137,7 +137,7 @@ QUnit.test('Notification Error', async function (assert) {
});
await this.start({ env: { bus } });
- const threadViewer = this.env.models['mail.thread_viewer'].create({
+ const threadView = this.env.models['mail.thread_view'].create({
thread: [['create', {
id: 11,
model: 'mail.channel',
@@ -151,10 +151,10 @@ QUnit.test('Notification Error', async function (assert) {
notification_status: 'exception',
notification_type: 'sms',
}]],
- originThread: [['link', threadViewer.thread]]
+ originThread: [['link', threadView.thread]]
});
await this.createMessageComponent(message, {
- threadViewerLocalId: threadViewer.localId
+ threadViewLocalId: threadView.localId
});
assert.containsOnce(