Add inline option for reports, too

This commit is contained in:
Oliver Walters committed 2021-08-07 22:28:48 +10:00
1 parent ca9536f687
commit f405e4b701
2 files changed
+3

No files matched your search

+1
View File
@@ -110,6 +110,7 @@ class LabelPrintMixin:
pdf = outputs[0].get_document().write_pdf()
inline = common.models.InvenTreeUserSetting.get_setting('LABEL_INLINE', user=request.user)
return InvenTree.helpers.DownloadFile(
pdf,
label_name,
+2
View File
@@ -254,6 +254,8 @@ class ReportPrintMixin:
else:
pdf = outputs[0].get_document().write_pdf()
inline = common.models.InvenTreeUserSetting.get_setting('REPORT_INLINE', user=request.user)
return InvenTree.helpers.DownloadFile(
pdf,
report_name,