mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-16 17:28:11 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user