Skip to content

Commit

Permalink
[FIX] bodies in method _run_wkhtmltopdf should be a list
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Tran committed Oct 31, 2024
1 parent d8d99e1 commit d3be15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report_wkhtmltopdf_param/models/report_paperformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _check_recursion_custom_params(self):
report = self.env["ir.actions.report"].new(
{"paperformat_id": paperformat.id}
)
content = report._run_wkhtmltopdf(sample_html)
content = report._run_wkhtmltopdf([sample_html])
if not content:
raise ValidationError(
self.env._("Failed to create a PDF using the provided parameters.")
Expand Down

0 comments on commit d3be15c

Please sign in to comment.