Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions report_aeroo_replace_qweb/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class ReportControllerWithAerooReplacement(ReportController):
@http.route(["/report/download"], type="http", auth="user")
def report_download(self, data, token):
def report_download(self, data, context=None, token=None):
"""Dowload a replacement aeroo report instead of a qweb report.

If the report is qweb-pdf and it has a replacement aeroo report,
Expand All @@ -37,7 +37,7 @@ def report_download(self, data, token):
},
)

return super().report_download(data, token)
return super().report_download(data=data, context=context, token=token)


def _get_report_from_qweb_download_url(url_: str) -> models.Model:
Expand Down
Loading