mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
Tweaks
This commit is contained in:
@ -910,9 +910,10 @@ class OrderParts(AjaxView):
|
||||
try:
|
||||
build = Build.objects.get(id=build_id)
|
||||
|
||||
parts = build.part.required_parts()
|
||||
parts = build.required_parts
|
||||
|
||||
for part in parts:
|
||||
|
||||
# If ordering from a Build page, ignore parts that we have enough of
|
||||
if part.quantity_to_order <= 0:
|
||||
continue
|
||||
|
Reference in New Issue
Block a user