mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fixes
This commit is contained in:
parent
7dfffcd5d3
commit
4a6bd0123a
@ -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()
|
||||
|
@ -250,7 +250,7 @@ class BuildTest(TestCase):
|
||||
|
||||
self.assertEqual(len(unallocated), 1)
|
||||
|
||||
self.build.unallocateUntracked()
|
||||
self.build.unallocateStock()
|
||||
|
||||
unallocated = self.build.unallocatedParts(None)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user