If a part has no bom items, the 'can_build' function now returns zero

This commit is contained in:
Oliver Walters 2019-05-09 18:35:55 +10:00
parent 8bf09300bb
commit 1a115104d2

View File

@ -284,7 +284,7 @@ class Part(models.Model):
# If this part does NOT have a BOM, result is simply the currently available stock
if not self.has_bom:
return self.available_stock
return 0
total = None