forked from erp-dev/erp
feat: hpname and external_order_id + product_name unique together
This commit is contained in:
@@ -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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user