wherehouse: fix stock movemend model field number which is auto agrement feature

This commit is contained in:
behruz-dev
2025-11-01 15:20:12 +05:00
parent b3845d8d74
commit a2f23fb601
3 changed files with 4 additions and 2 deletions

View File

@@ -13,8 +13,9 @@ class StockMovemendProductInline(admin.TabularInline):
@admin.register(StockMovemend)
class StockMovemendAdmin(admin.ModelAdmin):
list_display = ['id', 'wherehouse_to', 'wherehouse_from', 'movemend_type']
list_display = ['id', "number", 'wherehouse_to', 'wherehouse_from', 'movemend_type']
inlines = [StockMovemendProductInline]
ordering = ('-number',)
@admin.register(StockMovmendProduct)

View File

@@ -0,0 +1 @@
from .stock_movemend import *