2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Add tabs to part detail view

- Currently each "tab" reloads the entire page but with the new tab selected
- We could use bootstrap js to do this without reloading (load ALL part data)
This commit is contained in:
Oliver
2018-04-14 21:58:01 +10:00
parent 830d33763e
commit 0e2c5e6af5
13 changed files with 134 additions and 22 deletions

View File

@ -54,6 +54,11 @@ def bom(request, pk):
return render(request, 'part/bom.html', {'part': part})
def used(request, pk):
part = get_object_or_404(Part, pk=pk)
return render(request, 'part/used_in.html', {'part': part})
def stock(request, pk):
part = get_object_or_404(Part, pk=pk)