forked from erp-dev/erp
check
This commit is contained in:
@@ -33,6 +33,11 @@ def on_printing_job_process_completed(sender, **kwargs):
|
||||
"""
|
||||
from shipment.models import SalesItem, UnitChoices
|
||||
|
||||
logger.info(
|
||||
f'[printing.handlers] 收到 process_completed 信号: '
|
||||
f'sender={sender}, kwargs keys={list(kwargs.keys())}'
|
||||
)
|
||||
|
||||
content_object = kwargs.get('content_object')
|
||||
business_object = kwargs.get('business_object')
|
||||
last_completed_by = kwargs.get('last_completed_by')
|
||||
@@ -42,6 +47,7 @@ def on_printing_job_process_completed(sender, **kwargs):
|
||||
return
|
||||
|
||||
printing_job = content_object
|
||||
logger.info(f'[printing.handlers] 处理 PrintingJob #{printing_job.id}')
|
||||
|
||||
# 从 settings 获取配置
|
||||
source_state_id = getattr(settings, 'PRINTING_SALES_ITEM_SOURCE_STATE_ID', None)
|
||||
|
||||
Reference in New Issue
Block a user