2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 19:50:59 +00:00

Display table of StockItems which have been split from the current item

- The StockItem list api now allows filtering by 'ancestor'
- Add 'children' tab for StockItem
- Needed to tweak the unit testing fixtures (yay thanks MPTT)
This commit is contained in:
Oliver Walters
2020-02-17 22:37:55 +11:00
parent 4f266958e3
commit ae4ebab957
7 changed files with 96 additions and 6 deletions

View File

@ -7,6 +7,10 @@
location: 3
batch: 'B123'
quantity: 4000
level: 0
tree_id: 0
lft: 0
rght: 0
# 5,000 screws in the bathroom
- model: stock.stockitem
@ -14,6 +18,10 @@
part: 1
location: 2
quantity: 5000
level: 0
tree_id: 0
lft: 0
rght: 0
# 1234 2K2 resistors in 'Drawer_1'
- model: stock.stockitem
@ -22,6 +30,10 @@
part: 3
location: 5
quantity: 1234
level: 0
tree_id: 0
lft: 0
rght: 0
# Some widgets in drawer 3
- model: stock.stockitem
@ -31,6 +43,10 @@
location: 7
quantity: 10
delete_on_deplete: False
level: 0
tree_id: 0
lft: 0
rght: 0
- model: stock.stockitem
pk: 101
@ -38,10 +54,18 @@
part: 25
location: 7
quantity: 5
level: 0
tree_id: 0
lft: 0
rght: 0
- model: stock.stockitem
pk: 102
fields:
part: 25
location: 7
quantity: 3
quantity: 3
level: 0
tree_id: 0
lft: 0
rght: 0