2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-02 13:28:49 +00:00
2017-03-28 23:41:05 +11:00

14 lines
333 B
Python

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
})