2
0
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:
Oliver Walters
2017-03-27 21:04:15 +11:00
parent cc7593b44f
commit e98c20048b
9 changed files with 80 additions and 0 deletions

12
InvenTree/stock/views.py Normal file
View 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
})