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/chrome/web_client.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/chrome/web_client.js')
| -rw-r--r-- | addons/web/static/src/js/chrome/web_client.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/web/static/src/js/chrome/web_client.js b/addons/web/static/src/js/chrome/web_client.js index f668676673c..48666e2bd16 100644 --- a/addons/web/static/src/js/chrome/web_client.js +++ b/addons/web/static/src/js/chrome/web_client.js @@ -65,12 +65,12 @@ return AbstractWebClient.extend({ logo_edit: function(ev) { var self = this; ev.preventDefault(); - this.rpc("res.users", "read") + this._rpc("res.users", "read") .args([[session.uid], ["company_id"]]) .exec() .then(function(data) { - self.rpc("/web/action/load") - .kwargs({ action_id: "base.action_res_company_form" }) + self._rpc("/web/action/load") + .params({ action_id: "base.action_res_company_form" }) .exec() .done(function(result) { result.res_id = data[0].company_id[0]; @@ -99,7 +99,7 @@ return AbstractWebClient.extend({ var state = $.bbq.getState(true); if (_.isEmpty(state) || state.action === "login") { self.menu.is_bound.done(function() { - self.rpc("res.users", "read") + self._rpc("res.users", "read") .args([[session.uid], ["action_id"]]) .exec() .done(function(result) { |
