mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-05 21:20:56 +00:00
Added stock page
This commit is contained in:
12
InvenTree/stock/views.py
Normal file
12
InvenTree/stock/views.py
Normal file
@ -0,0 +1,12 @@
|
||||
from django.shortcuts import render, get_object_or_404
|
||||
from django.http import HttpResponse
|
||||
|
||||
from .models import Warehouse, StockItem
|
||||
|
||||
def index(request):
|
||||
|
||||
warehouses = Warehouse.objects.filter(parent = None)
|
||||
|
||||
return render(request, 'stock/index.html',
|
||||
{'warehouses': warehouses
|
||||
})
|
Reference in New Issue
Block a user