diff --git a/InvenTree/build/models.py b/InvenTree/build/models.py index 49a1bcf5dc..836536476b 100644 --- a/InvenTree/build/models.py +++ b/InvenTree/build/models.py @@ -745,7 +745,7 @@ class Build(MPTTModel): raise ValidationError(_("Build output does not match Build Order")) # Unallocate all build items against the output - self.unallocateStock(output) + self.unallocateOutput(output) # Remove the build output from the database output.delete() diff --git a/InvenTree/build/views.py b/InvenTree/build/views.py index 4b5a60e6e7..7e27c1bc64 100644 --- a/InvenTree/build/views.py +++ b/InvenTree/build/views.py @@ -212,7 +212,7 @@ class BuildOutputCreate(AjaxUpdateView): # Calculate the required quantity quantity = max(0, build.remaining - build.incomplete_count) - initials['quantity'] = quantity + initials['output_quantity'] = quantity return initials