From 5f417a73976ac16ef642dc00300f227c30a8eca2 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Tue, 11 Mar 2014 18:12:19 +0100 Subject: [PATCH] [FIX] Removed the ending slash of download attachment routes bzr revid: sle@openerp.com-20140311171219-j80lkmaezfezptxx --- addons/report/controllers/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/report/controllers/main.py b/addons/report/controllers/main.py index 1a839fc2c1f..0dae5f41288 100644 --- a/addons/report/controllers/main.py +++ b/addons/report/controllers/main.py @@ -488,7 +488,7 @@ class Report(http.Controller): return request.make_response(barcode, headers=[('Content-Type', 'image/png')]) - @http.route('/report/download/', type='http', auth="user") + @http.route('/report/download', type='http', auth="user") def report_attachment(self, data, token): """This function is used by 'qwebactionmanager.js' in order to trigger the download of a report of any type. @@ -515,7 +515,7 @@ class Report(http.Controller): response.set_cookie('fileToken', token) return response - @http.route('/report/check_wkhtmltopdf/', type='json', auth="user") + @http.route('/report/check_wkhtmltopdf', type='json', auth="user") def check_wkhtmltopdf(self): """Check the presence of wkhtmltopdf and return its version. If wkhtmltopdf cannot be found, return False.