mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] report_fillpdf, report_xlsx, report_xml: Use content_disposition helper
This commit is contained in:
committed by
Alex Cuellar
parent
b10a09948d
commit
e499c3ceec
@@ -2,7 +2,7 @@
|
||||
# License AGPL-3.0 or later (https://www.gnuorg/licenses/agpl.html).
|
||||
|
||||
from odoo.addons.web.controllers import main as report
|
||||
from odoo.http import route, request
|
||||
from odoo.http import content_disposition, route, request
|
||||
|
||||
import json
|
||||
|
||||
@@ -35,7 +35,7 @@ class ReportController(report.ReportController):
|
||||
('Content-Length', len(xlsx)),
|
||||
(
|
||||
'Content-Disposition',
|
||||
'attachment; filename=' + report.report_file + '.xlsx'
|
||||
content_disposition(report.report_file + '.xlsx')
|
||||
)
|
||||
]
|
||||
return request.make_response(xlsx, headers=xlsxhttpheaders)
|
||||
|
||||
Reference in New Issue
Block a user