Bug fixes

This commit is contained in:
Oliver 2021-10-14 11:00:27 +11:00
parent 7dfffcd5d3
commit 4a6bd0123a
2 changed files with 2 additions and 2 deletions

View File

@ -698,7 +698,7 @@ class Build(MPTTModel):
raise ValidationError(_("Build output does not match Build Order"))
# Unallocate all build items against the output
self.unallocateOutput(output)
self.unallocateStock(output=output)
# Remove the build output from the database
output.delete()

View File

@ -250,7 +250,7 @@ class BuildTest(TestCase):
self.assertEqual(len(unallocated), 1)
self.build.unallocateUntracked()
self.build.unallocateStock()
unallocated = self.build.unallocatedParts(None)