diff options
| author | Géry Debongnie <ged@odoo.com> | 2017-03-07 16:14:05 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | 86a87aa8b0dde2237cfe1bb769724e8ed269b62e (patch) | |
| tree | 472de08242d81d1811c23dbfcd4381a903917d85 /addons/web/static/src/js/apps.js | |
| parent | 78c97e6cc4c90036e68ad8f82b3c7d326b321067 (diff) | |
[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.
Diffstat (limited to 'addons/web/static/src/js/apps.js')
| -rw-r--r-- | addons/web/static/src/js/apps.js | 4 |
1 files changed, 2 insertions, 2 deletions
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('<a href="%s"></a>', 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) { |
