From 340e1c0219a9c5101110a6d7e597dc1a2a549706 Mon Sep 17 00:00:00 2001 From: XavierDo Date: Fri, 4 May 2018 16:19:12 +0200 Subject: [IMP] mail: add a desktop notification request to systray Purpose of this commit is to improve the onboarding and the first steps of Odoo notably when using Discuss and inviting first people to join Odoo. In this commit we now ask the user to activate desktop notifications. Like already done in Discuss a message will appear in systray in order to ask the user to do it. This message will disappear once the user accepts or blocks desktop notifications. This commit is linked to task ID 1838588 and PR #25075. --- addons/mail/static/tests/document_thread_window_tests.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'addons/mail/static/tests/document_thread_window_tests.js') 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) { -- cgit v1.2.3