forked from erp-dev/erp
feat: added wecom notify when printing_job production was completed(new status) and shipment was created
This commit is contained in:
@@ -5,3 +5,14 @@ class ShipmentConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'shipment'
|
||||
verbose_name = '出货管理'
|
||||
|
||||
def ready(self):
|
||||
from . import handlers
|
||||
from .models import Shipment
|
||||
from .signals import shipment_created
|
||||
|
||||
shipment_created.connect(
|
||||
handlers.on_shipment_created,
|
||||
sender=Shipment,
|
||||
dispatch_uid="shipment.on_shipment_created",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user