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/website/static/src/js/website.backendDashboard.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/website/static/src/js/website.backendDashboard.js')
| -rw-r--r-- | addons/website/static/src/js/website.backendDashboard.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/addons/website/static/src/js/website.backendDashboard.js b/addons/website/static/src/js/website.backendDashboard.js index 67a72a6de9e..94b7a89c6b9 100644 --- a/addons/website/static/src/js/website.backendDashboard.js +++ b/addons/website/static/src/js/website.backendDashboard.js @@ -103,9 +103,12 @@ var Dashboard = Widget.extend(ControlPanelMixin, { } var self = this; - this.performModelRPC('ir.config_parameter', 'set_param', ['google_management_client_id', ga_client_id]).then(function(){ - self.on_date_range_button('week'); - }); + this._rpc('ir.config_parameter', 'set_param') + .args(['google_management_client_id', ga_client_id]) + .exec() + .then(function(){ + self.on_date_range_button('week'); + }); }, render_dashboards: function() { |
