[FIX] report: /report/download route should not be website enabled
There's a little magic inside the website enabled route modifying the context's lang, thus breaking the logic to print the report in the current user's lang. The direct route to display the report should stay in website_enabled mode, as it allows to switch lang, use the website translator and so on.
This commit is contained in:
parent
06e1476e3b
commit
ce0dcac161
|
@ -93,7 +93,7 @@ class ReportController(Controller):
|
|||
|
||||
return request.make_response(barcode, headers=[('Content-Type', 'image/png')])
|
||||
|
||||
@route(['/report/download'], type='http', auth="user", website=True)
|
||||
@route(['/report/download'], type='http', auth="user")
|
||||
def report_download(self, data, token):
|
||||
"""This function is used by 'qwebactionmanager.js' in order to trigger the download of
|
||||
a pdf/controller report.
|
||||
|
|
Loading…
Reference in New Issue