From 0effb584b97c0f6e6877456148a5424ec25658cf Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 16 Nov 2019 20:13:51 +1100 Subject: [PATCH] Remove 'active' field - Will work this change in at a later date --- InvenTree/stock/models.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index 7edd161b69..3f56b2e885 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -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: