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:
@ -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:
|
||||
|
Reference in New Issue
Block a user