mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
If a part has no bom items, the 'can_build' function now returns zero
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user