Ввел логику сделок через партии, дополнение 2
All checks were successful
Deploy MES Core / deploy (push) Successful in 12s
All checks were successful
Deploy MES Core / deploy (push) Successful in 12s
This commit is contained in:
@@ -8,6 +8,7 @@ from .models import (
|
||||
Company,
|
||||
CuttingSession,
|
||||
Deal,
|
||||
DealDeliveryBatch,
|
||||
DealItem,
|
||||
DxfPreviewJob,
|
||||
DxfPreviewSettings,
|
||||
@@ -28,6 +29,7 @@ _models_to_reregister = (
|
||||
Company,
|
||||
CuttingSession,
|
||||
Deal,
|
||||
DealDeliveryBatch,
|
||||
DealItem,
|
||||
DxfPreviewJob,
|
||||
DxfPreviewSettings,
|
||||
@@ -77,6 +79,14 @@ class DealAdmin(admin.ModelAdmin):
|
||||
list_filter = ('status', 'company')
|
||||
inlines = (DealItemInline,)
|
||||
|
||||
# --- Настройка отображения Партий поставки ---
|
||||
@admin.register(DealDeliveryBatch)
|
||||
class DealDeliveryBatchAdmin(admin.ModelAdmin):
|
||||
list_display = ('deal', 'due_date', 'name', 'is_default', 'created_at')
|
||||
list_filter = ('is_default', 'due_date', 'deal')
|
||||
search_fields = ('deal__number', 'name')
|
||||
autocomplete_fields = ('deal',)
|
||||
|
||||
# --- Задания на производство (База) ---
|
||||
"""
|
||||
Панель администрирования Заданий на производство
|
||||
|
||||
Reference in New Issue
Block a user