move to use shim

This commit is contained in:
Matthias 2022-05-11 14:02:45 +02:00
parent 066eaa119d
commit 1636459ccd
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093
5 changed files with 8 additions and 3 deletions

View File

@ -36,7 +36,7 @@ import InvenTree.fields
import InvenTree.helpers
import InvenTree.tasks
from plugin.events import trigger_event
from plugin.event import trigger_event
from part import models as PartModels
from stock import models as StockModels

View File

@ -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.events import trigger_event
from plugin.event import trigger_event
import InvenTree.helpers
from InvenTree.fields import InvenTreeModelMoneyField, RoundingDecimalField

View File

@ -0,0 +1,5 @@
"""
Import helper for events
"""
from plugin.base.event.events import trigger_event

View File

@ -38,7 +38,7 @@ import common.models
import report.models
import label.models
from plugin.events import trigger_event
from plugin.event import trigger_event
from InvenTree.status_codes import StockStatus, StockHistoryCode
from InvenTree.models import InvenTreeTree, InvenTreeAttachment