From 075b62757a423096d74eef9cb99286ee920885d4 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 25 Oct 2024 15:54:11 +1100 Subject: [PATCH] Bug fix for auto-allocation against build order (#8359) --- src/backend/InvenTree/build/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/InvenTree/build/models.py b/src/backend/InvenTree/build/models.py index 66a01c4004b9..633705f5f8b0 100644 --- a/src/backend/InvenTree/build/models.py +++ b/src/backend/InvenTree/build/models.py @@ -887,7 +887,6 @@ def create_build_output(self, quantity, **kwargs): # Auto-allocate stock based on serial number if auto_allocate: - allocations = [] for bom_item in trackable_parts: valid_part_ids = valid_parts.get(bom_item.pk, [])