Merge PR #1648 into 13.0

Signed-off-by simahawk
pull/1677/head
OCA-git-bot 2020-09-07 07:22:57 +00:00
commit e9491c8491
1 changed files with 9 additions and 6 deletions

View File

@ -24,13 +24,16 @@ odoo.define("web_notify.WebClient", function(require) {
this.channel_info, this.channel_info,
this.channel_default, this.channel_default,
]; ];
this.call("bus_service", "startPolling");
if (this.call("bus_service", "isMasterTab")) {
this.call("bus_service", "addChannel", this.channel_success); this.call("bus_service", "addChannel", this.channel_success);
this.call("bus_service", "addChannel", this.channel_danger); this.call("bus_service", "addChannel", this.channel_danger);
this.call("bus_service", "addChannel", this.channel_warning); this.call("bus_service", "addChannel", this.channel_warning);
this.call("bus_service", "addChannel", this.channel_info); this.call("bus_service", "addChannel", this.channel_info);
this.call("bus_service", "addChannel", this.channel_default); this.call("bus_service", "addChannel", this.channel_default);
}
this.call("bus_service", "on", "notification", this, this.bus_notification); this.call("bus_service", "on", "notification", this, this.bus_notification);
this.call("bus_service", "startPolling");
}, },
bus_notification: function(notifications) { bus_notification: function(notifications) {
var self = this; var self = this;