summaryrefslogtreecommitdiff
path: root/addons/mail/static/tests/document_thread_window_tests.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-08-10 13:43:47 +0200
committerThibault Delavallée <tde@odoo.com>2018-08-10 13:43:47 +0200
commit1e7eb76c30c97390a3f71d79ce6bcfef49cceabc (patch)
treee3f9a9b98ada989c2d82fb89fb91e5edc79c6bbb /addons/mail/static/tests/document_thread_window_tests.js
parent7499b47ffab0712e8a03655365b11450716e5717 (diff)
parentcf505c36985221819139ce30d7f03e6e51ec0298 (diff)
[MERGE][IMP] mail, mail_bot: improve Discuss onboarding and add your new best friend
Purpose of this merge is to improve onboarding of Discuss. This is done via a wow effect and a bot to test the Discuss app; otherwise you have nobody to talk to. Purpose is also to improve retention as "the best way to increase retention is this: when the user invites someone, when this guy activates its account, the user gets a push notification from the invited user that just logged in; that way he will come back to Odoo and start discussing with its colleagues. Concerning your new best friend: it is not a dog but Odoobot. See sub commits for more details. This merge is linked to task ID 1838588 and closes PR #25075.
Diffstat (limited to 'addons/mail/static/tests/document_thread_window_tests.js')
-rw-r--r--addons/mail/static/tests/document_thread_window_tests.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/mail/static/tests/document_thread_window_tests.js b/addons/mail/static/tests/document_thread_window_tests.js
index 8cae9862dea..14d50d593ba 100644
--- a/addons/mail/static/tests/document_thread_window_tests.js
+++ b/addons/mail/static/tests/document_thread_window_tests.js
@@ -84,7 +84,12 @@ QUnit.module('DocumentThreadWindow', {
partner_id: partnerID, // so that needaction messages are treated as needactions
};
this.services = mailTestUtils.getMailServices();
+ this.MailService = this.services.mail_service;
+ this.MailService.prototype.IS_STATIC_PREVIEW_ENABLED = false;
},
+ afterEach: function () {
+ this.MailService.prototype.IS_STATIC_PREVIEW_ENABLED = true;
+ }
});
QUnit.test('open a document thread in a thread window', function (assert) {