From 86a87aa8b0dde2237cfe1bb769724e8ed269b62e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Tue, 7 Mar 2017 16:14:05 +0100 Subject: [REF] *: use _rpc method for all rpcs The _rpc method is now the preferred method to do a rpc, so we need to update all calls. --- addons/web/static/src/js/apps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/js/apps.js') diff --git a/addons/web/static/src/js/apps.js b/addons/web/static/src/js/apps.js index a1f85d6ae31..8e9818f67d6 100644 --- a/addons/web/static/src/js/apps.js +++ b/addons/web/static/src/js/apps.js @@ -40,7 +40,7 @@ var Apps = Widget.extend({ if (apps_client) { return check_client_available(apps_client); } else { - return this.rpc('ir.module.module', 'get_apps_server') + return this._rpc('ir.module.module', 'get_apps_server') .exec() .then(function(u) { var link = $(_.str.sprintf('', u))[0]; @@ -90,7 +90,7 @@ var Apps = Widget.extend({ }); }, 'Model': function(m) { - return this.rpc(m.model, m.method) + return this._rpc(m.model, m.method) .args(m.args) .exec() .then(function(r) { -- cgit v1.2.3