1
0
forked from erp-dev/erp

feat: new module: 'shipment', new signal when process was finished

This commit is contained in:
2026-01-13 18:19:31 +08:00
parent 70ed92e2f6
commit 6b6d2a97b6
12 changed files with 550 additions and 98 deletions

View File

@@ -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
)