2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 11:05:41 +00:00

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

* Remove django-weasyprint entirely

* Handle null request

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

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