mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-23 00:06:16 +00:00
Deleted extraneous form code
This commit is contained in:
1 parent
39530831d8
commit
bee760d184
6 files changed
+66
-95
No files matched your search
@@ -166,6 +166,16 @@ class StockItem(models.Model):
|
||||
|
||||
infinite = models.BooleanField(default=False)
|
||||
|
||||
@property
|
||||
def in_stock(self):
|
||||
if self.quantity == 0:
|
||||
return False
|
||||
|
||||
if self.belongs_to or self.customer:
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
@property
|
||||
def has_tracking_info(self):
|
||||
return self.tracking_info.count() > 0
|
||||
|
||||
Reference in new issue
Block a user