mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] report_csv: Assign 'reportname' variable before accessing it
This commit is contained in:
@@ -54,6 +54,7 @@ class ReportController(report.ReportController):
|
||||
def report_download(self, data, context=None):
|
||||
requestcontent = json.loads(data)
|
||||
url, report_type = requestcontent[0], requestcontent[1]
|
||||
reportname = ""
|
||||
try:
|
||||
if report_type == "csv":
|
||||
reportname = url.split("/report/csv/")[1].split("?")[0]
|
||||
|
||||
Reference in New Issue
Block a user