[FIX] report_download controller method signature in two modules

This commit is contained in:
Stefan Rijnhart
2022-05-11 19:27:48 +02:00
parent 7090dc3430
commit db971c4a3c
2 changed files with 6 additions and 4 deletions

View File

@@ -12,8 +12,8 @@ from odoo.addons.web.controllers import main as report
class ReportController(report.ReportController):
@route()
def report_download(self, data, token):
result = super().report_download(data, token)
def report_download(self, data, token, context=None):
result = super().report_download(data, token, context=context)
# When report is downloaded from print action, this function is called,
# but this function cannot pass context (manually entered password) to
# report.render_qweb_pdf(), encrypton for manual password is done here.