mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Add function to get the number of required tests for a part
This commit is contained in:
		| @@ -1033,6 +1033,9 @@ class Part(MPTTModel): | ||||
|         # Return the tests which are required by this part | ||||
|         return self.getTestTemplates(required=True) | ||||
|  | ||||
|     def requiredTestCount(self): | ||||
|         return self.getRequiredTests().count() | ||||
|  | ||||
|     @property | ||||
|     def attachment_count(self): | ||||
|         """ Count the number of attachments for this part. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user