diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 44f3b3cf48..6a5b3f9e8c 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -861,5 +861,6 @@ if DEBUG or TESTING: PLUGINS = [] INTEGRATION_PLUGINS = {} +INTEGRATION_PLUGINS_INACTIVE = {} INTEGRATION_PLUGIN_SETTING = {} INTEGRATION_APPS_LOADED = False # Marks if apps were reloaded yet diff --git a/InvenTree/plugin/apps.py b/InvenTree/plugin/apps.py index 7f2af4687b..b8c7da1b40 100644 --- a/InvenTree/plugin/apps.py +++ b/InvenTree/plugin/apps.py @@ -64,6 +64,9 @@ class PluginConfig(AppConfig): plugin.is_package = was_packaged # safe reference settings.INTEGRATION_PLUGINS[plugin.slug] = plugin + else: + # save for later reference + settings.INTEGRATION_PLUGINS_INACTIVE[plug_key] = plugin_db_setting # activate integrations plugins = settings.INTEGRATION_PLUGINS.items()