mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
ae4ebab957
- The StockItem list api now allows filtering by 'ancestor' - Add 'children' tab for StockItem - Needed to tweak the unit testing fixtures (yay thanks MPTT)
71 lines
1.0 KiB
YAML
71 lines
1.0 KiB
YAML
# Create some sample stock items
|
|
|
|
# 4,000 screws in the dining room
|
|
- model: stock.stockitem
|
|
fields:
|
|
part: 1
|
|
location: 3
|
|
batch: 'B123'
|
|
quantity: 4000
|
|
level: 0
|
|
tree_id: 0
|
|
lft: 0
|
|
rght: 0
|
|
|
|
# 5,000 screws in the bathroom
|
|
- model: stock.stockitem
|
|
fields:
|
|
part: 1
|
|
location: 2
|
|
quantity: 5000
|
|
level: 0
|
|
tree_id: 0
|
|
lft: 0
|
|
rght: 0
|
|
|
|
# 1234 2K2 resistors in 'Drawer_1'
|
|
- model: stock.stockitem
|
|
pk: 1234
|
|
fields:
|
|
part: 3
|
|
location: 5
|
|
quantity: 1234
|
|
level: 0
|
|
tree_id: 0
|
|
lft: 0
|
|
rght: 0
|
|
|
|
# Some widgets in drawer 3
|
|
- model: stock.stockitem
|
|
pk: 100
|
|
fields:
|
|
part: 25
|
|
location: 7
|
|
quantity: 10
|
|
delete_on_deplete: False
|
|
level: 0
|
|
tree_id: 0
|
|
lft: 0
|
|
rght: 0
|
|
|
|
- model: stock.stockitem
|
|
pk: 101
|
|
fields:
|
|
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
|
|
level: 0
|
|
tree_id: 0
|
|
lft: 0
|
|
rght: 0 |