1
0
forked from erp-dev/erp

feat: hpname and external_order_id + product_name unique together

This commit is contained in:
2026-03-23 19:06:11 +08:00
parent b58667ca52
commit eb5fae1ce7
6 changed files with 251 additions and 10 deletions

View File

@@ -360,7 +360,12 @@ class PrintingJobAdmin(admin.ModelAdmin):
'execution_status',
'created_at',
)
search_fields = ('printing_order__human_id', 'product__name')
search_fields = (
'=printing_order__id',
'printing_order__external_order_id',
'product__name',
'external_product_name',
)
list_filter = ('created_at', 'printing_order__customer__name')
actions = ['advance_to_next_state_action', 'step_back_one_state_action', 'reset_progress_action']