mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +00:00
Started work on cross-referencing
- part admin now shows total quantity in stock - part model can return a list of projects it is associated with
This commit is contained in:
@ -9,7 +9,8 @@ class Warehouse(InvenTreeTree):
|
||||
pass
|
||||
|
||||
class StockItem(models.Model):
|
||||
part = models.ForeignKey(Part, on_delete=models.CASCADE)
|
||||
part = models.ForeignKey(Part,
|
||||
on_delete=models.CASCADE)
|
||||
location = models.ForeignKey(Warehouse, on_delete=models.CASCADE)
|
||||
quantity = models.IntegerField()
|
||||
updated = models.DateField(auto_now=True)
|
||||
|
Reference in New Issue
Block a user