mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-27 22:26:00 +00:00
Disable retry for label printing (#12937)
prevents multiple label copies sent to machine - e.g. if timeout occurs on first attempt
This commit is contained in:
@@ -197,6 +197,7 @@ class LabelPrintingMixin:
|
|||||||
plugin_label.print_label,
|
plugin_label.print_label,
|
||||||
self.plugin_slug(),
|
self.plugin_slug(),
|
||||||
group='plugin',
|
group='plugin',
|
||||||
|
retry=False,
|
||||||
**print_args,
|
**print_args,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ class InvenTreeLabelPlugin(LabelPrintingMixin, InvenTreePlugin):
|
|||||||
output=output,
|
output=output,
|
||||||
force_sync=settings.TESTING or driver.USE_BACKGROUND_WORKER,
|
force_sync=settings.TESTING or driver.USE_BACKGROUND_WORKER,
|
||||||
group='plugin',
|
group='plugin',
|
||||||
|
retry=False,
|
||||||
**print_kwargs,
|
**print_kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user