[MERGE][FIX] Download of a report was broken because of a slash at the end of the route used by 'get_file'

bzr revid: sle@openerp.com-20140311180929-ih40j1fx1tsloync
This commit is contained in:
Simon Lejeune 2014-03-11 19:09:29 +01:00
commit 66c594fe6d
1 changed files with 2 additions and 2 deletions

View File

@ -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.