diff --git a/InvenTree/build/models.py b/InvenTree/build/models.py index 8b4ee5e0b2..a1517d73dd 100644 --- a/InvenTree/build/models.py +++ b/InvenTree/build/models.py @@ -36,7 +36,7 @@ import InvenTree.fields import InvenTree.helpers import InvenTree.tasks -from plugin import trigger_event +from plugin.events import trigger_event from part import models as PartModels from stock import models as StockModels diff --git a/InvenTree/order/models.py b/InvenTree/order/models.py index 0bf14cffc8..6ca5b7a293 100644 --- a/InvenTree/order/models.py +++ b/InvenTree/order/models.py @@ -30,7 +30,7 @@ from users import models as UserModels from part import models as PartModels from stock import models as stock_models from company.models import Company, SupplierPart -from plugin import trigger_event +from plugin.events import trigger_event import InvenTree.helpers from InvenTree.fields import InvenTreeModelMoneyField, RoundingDecimalField diff --git a/InvenTree/plugin/__init__.py b/InvenTree/plugin/__init__.py index 94ff41e9ea..ca7fc0c305 100644 --- a/InvenTree/plugin/__init__.py +++ b/InvenTree/plugin/__init__.py @@ -3,7 +3,6 @@ Utility file to enable simper imports """ from .registry import registry -from .events import trigger_event from .plugin import InvenTreePluginBase, IntegrationPluginBase from .base.action.action import ActionPlugin @@ -12,7 +11,6 @@ from .helpers import MixinNotImplementedError, MixinImplementationError __all__ = [ 'registry', - 'trigger_event', 'ActionPlugin', 'IntegrationPluginBase', diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index cf240fc5dc..53e1321e1a 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -38,7 +38,7 @@ import common.models import report.models import label.models -from plugin import trigger_event +from plugin.events import trigger_event from InvenTree.status_codes import StockStatus, StockHistoryCode from InvenTree.models import InvenTreeTree, InvenTreeAttachment