mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #2775 from SchrodingersGat/print-error-tweak
Register notification against the plugin class, not the particular label
This commit is contained in:
commit
223744eba1
@ -228,8 +228,9 @@ def print_label(plugin_slug, label_image, label_instance=None, user=None):
|
||||
|
||||
logger.error(f"Label printing failed: Sending notification to user '{user}'")
|
||||
|
||||
# Throw an error against the plugin instance
|
||||
common.notifications.trigger_notifaction(
|
||||
label_instance,
|
||||
plugin.plugin_config(),
|
||||
'label.printing_failed',
|
||||
targets=[user],
|
||||
context=ctx,
|
||||
|
Loading…
Reference in New Issue
Block a user