summaryrefslogtreecommitdiff
path: root/addons/report/static/src/js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-03-07 16:14:05 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit86a87aa8b0dde2237cfe1bb769724e8ed269b62e (patch)
tree472de08242d81d1811c23dbfcd4381a903917d85 /addons/report/static/src/js
parent78c97e6cc4c90036e68ad8f82b3c7d326b321067 (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/report/static/src/js')
-rw-r--r--addons/report/static/src/js/qwebactionmanager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/report/static/src/js/qwebactionmanager.js b/addons/report/static/src/js/qwebactionmanager.js
index 1d57b8642ea..ded094cb26e 100644
--- a/addons/report/static/src/js/qwebactionmanager.js
+++ b/addons/report/static/src/js/qwebactionmanager.js
@@ -89,7 +89,7 @@ ActionManager.include({
} else if (action.report_type === 'qweb-pdf') {
framework.blockUI();
// Before doing anything, we check the state of wkhtmltopdf on the server.
- (wkhtmltopdf_state = wkhtmltopdf_state || this.performRPC('/report/check_wkhtmltopdf')).then(function (state) {
+ (wkhtmltopdf_state = wkhtmltopdf_state || this._rpc('/report/check_wkhtmltopdf').exec()).then(function (state) {
// Display a notification to the user according to wkhtmltopdf's state.
if (WKHTMLTOPDF_MESSAGES[state]) {
self.do_notify(_t('Report'), WKHTMLTOPDF_MESSAGES[state], true);