Skip to content
Snippets Groups Projects
Commit cfcaae23 authored by ebuzey's avatar ebuzey
Browse files

[ADD] ReportWizard Model, View and Controller

1. Introduce the ReportWizard model: A transient model, "ReportWizard", has been implemented in
   report_wizard.py. This template represents the wizard popup window and contains
   the content of the report, the name of the file.

2. The wizard view in report_wizard_view.xml: Shows the report content and file name,
   with a button that, when clicked, triggers the "download_report" method
   on the magician model.

3.controllers.py - when the user clicks "Download report"
   of the wizard, go to the URL /self-consumption_energy/report_download.
   This URL is handled by the controller, which takes the helper registration ID from the URL,
   retrieves the report content from the log and responds with content you request
   the browser to download the report as a file.

[MIG] ReportWizard model, wizard view, controller
parent 94a1e84f
No related branches found
No related tags found
2 merge requests!195[REL] 14.0.2.0.0,!192[IMP] self_consumption: adding reports and documents
Pipeline #46660 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment