mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-21 17:30:50 +00:00
Implement option to display labels "inline" in the browser
This commit is contained in:
1 parent
d77b99c0ca
commit
ca9536f687
4 files changed
+9
-3
No files matched your search
@@ -109,10 +109,12 @@ class LabelPrintMixin:
|
||||
else:
|
||||
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,
|
||||
content_type='application/pdf'
|
||||
content_type='application/pdf',
|
||||
inline=inline
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user