mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 10:51:17 +00:00
If a part has no bom items, the 'can_build' function now returns zero
This commit is contained in:
1 parent
8bf09300bb
commit
1a115104d2
1 file changed
+1
-1
@@ -284,7 +284,7 @@ class Part(models.Model):
|
|||||||
|
|
||||||
# If this part does NOT have a BOM, result is simply the currently available stock
|
# If this part does NOT have a BOM, result is simply the currently available stock
|
||||||
if not self.has_bom:
|
if not self.has_bom:
|
||||||
return self.available_stock
|
return 0
|
||||||
|
|
||||||
total = None
|
total = None
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user