mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Remove 'active' field
- Will work this change in at a later date
This commit is contained in:
parent
339126b27a
commit
0effb584b9
@ -121,7 +121,6 @@ class StockItem(models.Model):
|
||||
build: Link to a Build (if this stock item was created from a build)
|
||||
purchase_order: Link to a PurchaseOrder (if this stock item was created from a PurchaseOrder)
|
||||
infinite: If True this StockItem can never be exhausted
|
||||
active: True (by default) unless the StockItem has been 'deleted'
|
||||
"""
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
@ -365,8 +364,6 @@ class StockItem(models.Model):
|
||||
|
||||
infinite = models.BooleanField(default=False)
|
||||
|
||||
active = models.BooleanField(default=True)
|
||||
|
||||
def can_delete(self):
|
||||
""" Can this stock item be deleted? It can NOT be deleted under the following circumstances:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user