mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Register notification against the plugin class, not the particular label
This commit is contained in:
parent
b57c4591e5
commit
3e484317d2
@ -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