[FIX] report_download controller method signature in two modules

pull/681/head
Stefan Rijnhart 2022-05-11 19:27:48 +02:00 committed by grzana12
parent 12616ac1bd
commit fbb8c59769
1 changed files with 2 additions and 2 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.