Adds a new setting to enable event responses

This commit is contained in:
Oliver committed 2022-01-07 21:53:42 +11:00
1 parent 1e5ecb13f0
commit 8ff3bf1ad1
3 files changed
+17 -1

No files matched your search

+10 -1
View File
@@ -957,6 +957,8 @@ class InvenTreeSetting(BaseInvenTreeSetting):
'default': False,
'validator': bool,
},
# Settings for plugin mixin features
'ENABLE_PLUGINS_URL': {
'name': _('Enable URL integration'),
'description': _('Enable plugins to add URL routes'),
@@ -984,7 +986,14 @@ class InvenTreeSetting(BaseInvenTreeSetting):
'default': False,
'validator': bool,
'requires_restart': True,
}
},
'ENABLE_PLUGINS_EVENTS': {
'name': _('Enable event integration'),
'description': _('Enable plugins to respond to internal events'),
'default': False,
'validator': bool,
'requires_restart': True,
},
}
class Meta: