2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00

Adds sample plugin which responds to triggered events

- Adds some example trigger events for the "Part" model
This commit is contained in:
Oliver
2022-01-08 09:07:27 +11:00
parent a604d85f0f
commit 04d25a60b0
8 changed files with 116 additions and 9 deletions

View File

@ -63,3 +63,15 @@ class InvenTreePlugin():
raise error
return cfg
def is_active(self):
"""
Return True if this plugin is currently active
"""
cfg = self.plugin_config()
if cfg:
return cfg.active
else:
return False