mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-20 22:06:28 +00:00
Add functions to test if a stock item has passed all tests
This commit is contained in:
@ -1009,6 +1009,10 @@ class Part(MPTTModel):
|
||||
tests = tests.filter(required=required)
|
||||
|
||||
return tests
|
||||
|
||||
def getRequiredTests(self):
|
||||
# Return the tests which are required by this part
|
||||
return self.getTestTemplates(required=True)
|
||||
|
||||
@property
|
||||
def attachment_count(self):
|
||||
|
Reference in New Issue
Block a user