forked from erp-dev/erp
feat: new module: 'shipment', new signal when process was finished
This commit is contained in:
@@ -5,3 +5,15 @@ class PrintingConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'printing'
|
||||
verbose_name = '印染管理'
|
||||
|
||||
def ready(self):
|
||||
"""注册信号处理函数"""
|
||||
from stateflow.signals import process_completed
|
||||
from .models import PrintingJob
|
||||
from . import handlers
|
||||
|
||||
# 监听 PrintingJob 流程完成信号
|
||||
process_completed.connect(
|
||||
handlers.on_printing_job_process_completed,
|
||||
sender=PrintingJob
|
||||
)
|
||||
Reference in New Issue
Block a user