mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] report_csv: Add support to save the result as attachment
This commit is contained in:
@@ -37,8 +37,8 @@ class ReportController(report.ReportController):
|
||||
del data['context']['lang']
|
||||
context.update(data['context'])
|
||||
|
||||
csv = report.with_context(context).render_csv(
|
||||
docids, data=data
|
||||
csv = request.env["report"].with_context(context).get_csv(
|
||||
docids, reportname, data=data
|
||||
)[0]
|
||||
filename = "%s.%s" % (report.name, "csv")
|
||||
if docids:
|
||||
|
||||
Reference in New Issue
Block a user