mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fix for label printing (#4751)
* Bug fix for label printing - Do not use "debug mode" when printing using a plugin - Fixes https://github.com/inventree/InvenTree/issues/4745 * Fix inverted logic
This commit is contained in:
parent
3ff217d229
commit
6da108e031
@ -211,7 +211,8 @@ class LabelPrintMixin(LabelFilterMixin):
|
|||||||
label_names.append(label_name)
|
label_names.append(label_name)
|
||||||
label_instances.append(label)
|
label_instances.append(label)
|
||||||
|
|
||||||
if debug_mode:
|
if debug_mode and plugin is None:
|
||||||
|
# Note that debug mode is only supported when not using a plugin
|
||||||
outputs.append(label.render_as_string(request))
|
outputs.append(label.render_as_string(request))
|
||||||
else:
|
else:
|
||||||
outputs.append(label.render(request))
|
outputs.append(label.render(request))
|
||||||
|
Loading…
Reference in New Issue
Block a user