[refactor] Remove django-weasyprint entirely (#9316)

* Remove django-weasyprint entirely

* Handle null request

* Bug fix
This commit is contained in:
Oliver authored and GitHub committed 2025-03-17 07:51:29 +11:00
1 parent 3afafe594b
commit a453c9b286
7 files changed
+64 -104

No files matched your search

-1
View File
@@ -148,7 +148,6 @@ class MyLabelPrinter(LabelPrintingMixin, InvenTreePlugin):
Send the label to the printer
kwargs:
pdf_file: The PDF file object of the rendered label (WeasyTemplateResponse object)
pdf_data: Raw PDF data of the rendered label
filename: The filename of this PDF label
label_instance: The instance of the label model which triggered the print_label() method