From 239d460ae5e0f6896f794befa37433211b12944f Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Thu, 7 Jun 2018 13:21:59 +0200 Subject: [PATCH] [FIX] bus: correctly forwardport 10161f9d61 --- addons/bus/static/src/js/bus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/bus/static/src/js/bus.js b/addons/bus/static/src/js/bus.js index e93d2112d2f..d0da7676f9f 100644 --- a/addons/bus/static/src/js/bus.js +++ b/addons/bus/static/src/js/bus.js @@ -85,7 +85,7 @@ bus.Bus = Widget.extend({ } var data = {channels: self.channels, last: self.last, options: options}; // The backend has a maximum cycle time of 50 seconds so give +10 seconds - this._pollRpc = session.rpc(this.pollRoute, data, {shadow : true, timeout: 60000}); + this._pollRpc = this.session.rpc(this.pollRoute, data, {shadow : true, timeout: 60000}); this._pollRpc.then(function (result) { self._pollRpc = false; self.on_notification(result);