diff options
Diffstat (limited to 'addons/web/static/src/js/fields/upgrade_fields.js')
| -rw-r--r-- | addons/web/static/src/js/fields/upgrade_fields.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/addons/web/static/src/js/fields/upgrade_fields.js b/addons/web/static/src/js/fields/upgrade_fields.js index bbfd9b5b5d1..a4246983dd1 100644 --- a/addons/web/static/src/js/fields/upgrade_fields.js +++ b/addons/web/static/src/js/fields/upgrade_fields.js @@ -37,9 +37,12 @@ var AbstractFieldUpgrade = { */ _confirmUpgrade: function () { var args = [[["share", "=", false]]]; - return this.performModelRPC('res.users', 'search_count', args).then(function (data) { - framework.redirect("https://www.odoo.com/odoo-enterprise/upgrade?num_users=" + data); - }); + return this._rpc('res.users', 'search_count') + .args(args) + .exec() + .then(function (data) { + framework.redirect("https://www.odoo.com/odoo-enterprise/upgrade?num_users=" + data); + }); }, /** * This function is meant to be overriden to insert the 'Enterprise' label |
