[IMP] format xlsx to global files

This commit is contained in:
Saran440
2020-11-19 17:37:45 +07:00
parent e928294e78
commit 97e530adeb
7 changed files with 408 additions and 162 deletions

View File

@@ -28,12 +28,7 @@ class ReportController(ReportController):
if data.get("options"):
data.update(json.loads(data.pop("options")))
if data.get("context"):
# Ignore 'lang' here, because the context in data is the one
# from the webclient *but* if the user explicitely wants to
# change the lang, this mechanism overwrites it.
data["context"] = json.loads(data["context"])
if data["context"].get("lang"):
del data["context"]["lang"]
context.update(data["context"])
context["report_name"] = reportname