mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] report_csv : black, isort, prettier
This commit is contained in:
committed by
Zina Rasoamanana
parent
3902c7f68a
commit
792f95d80c
@@ -27,7 +27,7 @@ class ReportController(report.ReportController):
|
||||
if data["context"].get("lang"):
|
||||
del data["context"]["lang"]
|
||||
context.update(data["context"])
|
||||
csv = report.with_context(context)._render_csv(docids, data=data)[0]
|
||||
csv = report.with_context(**context)._render_csv(docids, data=data)[0]
|
||||
filename = "{}.{}".format(report.name, "csv")
|
||||
if docids:
|
||||
obj = request.env[report.model].browse(docids)
|
||||
|
||||
Reference in New Issue
Block a user