mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
@@ -56,7 +56,7 @@ class ReportController(main.ReportController):
|
|||||||
return request.make_response(res, headers=http_headers)
|
return request.make_response(res, headers=http_headers)
|
||||||
|
|
||||||
@route()
|
@route()
|
||||||
def report_download(self, data, token):
|
def report_download(self, data, token, context=None):
|
||||||
"""This function is used by 'qwebactionmanager.js' in order to trigger
|
"""This function is used by 'qwebactionmanager.js' in order to trigger
|
||||||
the download of a py3o/controller report.
|
the download of a py3o/controller report.
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@ class ReportController(main.ReportController):
|
|||||||
requestcontent = json.loads(data)
|
requestcontent = json.loads(data)
|
||||||
url, report_type = requestcontent[0], requestcontent[1]
|
url, report_type = requestcontent[0], requestcontent[1]
|
||||||
if "py3o" not in report_type:
|
if "py3o" not in report_type:
|
||||||
return super(ReportController, self).report_download(data, token)
|
return super(ReportController, self).report_download(data, token, context)
|
||||||
try:
|
try:
|
||||||
reportname = url.split("/report/py3o/")[1].split("?")[0]
|
reportname = url.split("/report/py3o/")[1].split("?")[0]
|
||||||
docids = None
|
docids = None
|
||||||
|
|||||||
Reference in New Issue
Block a user