1
0
forked from erp-dev/erp

fix: printing job admin auto complete for product field

This commit is contained in:
2026-03-28 00:04:08 +08:00
parent aa97e61c89
commit 38f40644a3
2 changed files with 21 additions and 0 deletions

View File

@@ -368,6 +368,13 @@ class PrintingJobAdmin(admin.ModelAdmin):
)
list_filter = ('created_at', 'printing_order__customer__name')
actions = ['advance_to_next_state_action', 'step_back_one_state_action', 'reset_progress_action']
autocomplete_fields = (
'merchant',
'printing_order',
'product',
'business_object',
'created_by',
)
def save_model(self, request, obj, form, change):
"""保存 PrintingJob 时使用 service 层"""