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

Add part stocktake to Stock Location page(s)

This commit is contained in:
Oliver
2018-05-08 22:41:52 +10:00
parent f2982a59ad
commit bf4ffb8b0b
3 changed files with 28 additions and 17 deletions

View File

@ -194,8 +194,6 @@ class StockItem(models.Model):
@property
def in_stock(self):
if self.quantity == 0:
return False
if self.belongs_to or self.customer:
return False
@ -284,6 +282,9 @@ class StockItem(models.Model):
""" Remove items from stock
"""
if self.quantity == 0:
return
quantity = int(quantity)
if quantity <= 0 or self.infinite: