2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 03:30:54 +00:00

Skeleton for deleting multiple items

- Does not work yet! But opens a window...
This commit is contained in:
Oliver
2018-05-06 22:38:39 +10:00
parent a7abf9731b
commit ee0cbdbb07
3 changed files with 75 additions and 48 deletions

View File

@ -166,6 +166,10 @@ class StockItem(models.Model):
infinite = models.BooleanField(default=False)
def can_delete(self):
# TODO - Return FALSE if this item cannot be deleted!
return True
@property
def in_stock(self):
if self.quantity == 0: