diff --git a/report_wkhtmltopdf_param/models/report_paperformat.py b/report_wkhtmltopdf_param/models/report_paperformat.py index ed5e427b23..0d74ce72fd 100644 --- a/report_wkhtmltopdf_param/models/report_paperformat.py +++ b/report_wkhtmltopdf_param/models/report_paperformat.py @@ -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.")