mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Bug fixes
This commit is contained in:
		@@ -698,7 +698,7 @@ class Build(MPTTModel):
 | 
				
			|||||||
            raise ValidationError(_("Build output does not match Build Order"))
 | 
					            raise ValidationError(_("Build output does not match Build Order"))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Unallocate all build items against the output
 | 
					        # Unallocate all build items against the output
 | 
				
			||||||
        self.unallocateOutput(output)
 | 
					        self.unallocateStock(output=output)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Remove the build output from the database
 | 
					        # Remove the build output from the database
 | 
				
			||||||
        output.delete()
 | 
					        output.delete()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -250,7 +250,7 @@ class BuildTest(TestCase):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        self.assertEqual(len(unallocated), 1)
 | 
					        self.assertEqual(len(unallocated), 1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.build.unallocateUntracked()
 | 
					        self.build.unallocateStock()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        unallocated = self.build.unallocatedParts(None)
 | 
					        unallocated = self.build.unallocatedParts(None)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user