diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-12-05 14:35:09 +0000 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-12-06 14:51:28 +0000 |
| commit | 64f044761aa52bc4fb87821de415aef5a8fea0d9 (patch) | |
| tree | 6b3596121a89563951469c76f4003c8b823f772d /addons/bus/static/src/js/services | |
| parent | f3bd34b870ea63025213b9964c34c8ba38443a79 (diff) | |
[IMP] bus, mail, mail_bot: improved native notification
With this commit, no push notification is sent to user when
to acknowledge that he just has accepted them. Also, on native
push notifications, the Odoo Bot icon now has a transparent
background.
Task-ID 1881001
Diffstat (limited to 'addons/bus/static/src/js/services')
| -rw-r--r-- | addons/bus/static/src/js/services/bus_service.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/bus/static/src/js/services/bus_service.js b/addons/bus/static/src/js/services/bus_service.js index 72ba8c1531b..36eb496270f 100644 --- a/addons/bus/static/src/js/services/bus_service.js +++ b/addons/bus/static/src/js/services/bus_service.js @@ -80,7 +80,7 @@ var BusService = CrossTab.extend(ServicesMixin, { * @param {function} [callback] if given callback will be called when user clicks on notification */ _sendNativeNotification: function (title, content, callback) { - var notification = new Notification(title, {body: content, icon: "/mail/static/src/img/odoobot.png"}); + var notification = new Notification(title, {body: content, icon: "/mail/static/src/img/odoobot_transparent.png"}); notification.onclick = function () { window.focus(); if (this.cancel) { |
