[FIX] report_qweb_encrypt: Use _get_report instead of _get_report_from_name

reportname is not only a string but also a model or integer, the method
_get_report handles those cases to return the report.
This commit is contained in:
rolandojduartem
2023-10-19 01:28:00 +00:00
parent 48ad42cec7
commit 77cf0b815e

View File

@@ -31,7 +31,7 @@ class IrActionsReport(models.Model):
)
if res_ids:
encrypt_password = self._context.get("encrypt_password")
report = self._get_report_from_name(reportname).with_context(
report = self._get_report(reportname).with_context(
encrypt_password=encrypt_password
)
password = report._get_pdf_password(res_ids[:1])