Enable input controls in PDF reports (#10969)

* Enable input controls in PDF reports

Modify options passed to WeasyPrint.

* Changelog update for issue #10969.

* Add usage notes for PDF forms to report docs (#10969).
This commit is contained in:
mlam19 authored and GitHub committed 2025-12-07 07:35:52 +11:00
1 parent a0cfdd72a5
commit 27fd2bcb8d
3 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -272,7 +272,7 @@ class ReportTemplateBase(MetadataMixin, InvenTree.models.InvenTreeModel):
bytes: PDF data
"""
html = self.render_as_string(instance, request, context, **kwargs)
pdf = HTML(string=html).write_pdf()
pdf = HTML(string=html).write_pdf(pdf_forms=True)
return pdf