add new app
This commit is contained in:
3
core/apps/wherehouse/admin/__init__.py
Normal file
3
core/apps/wherehouse/admin/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from .wherehouse import *
|
||||
from .inventory import *
|
||||
from .stock_movement import *
|
||||
9
core/apps/wherehouse/admin/inventory.py
Normal file
9
core/apps/wherehouse/admin/inventory.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from core.apps.wherehouse.models.inventory import Inventory
|
||||
|
||||
|
||||
@admin.register(Inventory)
|
||||
class InventoryAdmin(admin.ModelAdmin):
|
||||
list_display = ['quantity', 'wherehouse', 'product']
|
||||
|
||||
8
core/apps/wherehouse/admin/stock_movement.py
Normal file
8
core/apps/wherehouse/admin/stock_movement.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from core.apps.wherehouse.models.stock_movemend import StockMovemend
|
||||
|
||||
|
||||
@admin.register(StockMovemend)
|
||||
class StockMovemendAdmin(admin.ModelAdmin):
|
||||
list_display = ['wherehouse_to', 'wherehouse_from', 'product', 'quantity', 'movemend_type']
|
||||
10
core/apps/wherehouse/admin/wherehouse.py
Normal file
10
core/apps/wherehouse/admin/wherehouse.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from core.apps.wherehouse.models.wherehouse import WhereHouse
|
||||
|
||||
|
||||
@admin.register(WhereHouse)
|
||||
class WhereHouseAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'address', 'branch']
|
||||
search_fields = ['name', 'address']
|
||||
list_filter = ['branch']
|
||||
Reference in New Issue
Block a user