mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-06 05:30:56 +00:00
Display testing status for a stock item
This commit is contained in:
@ -1000,6 +1000,9 @@ class StockItem(MPTTModel):
|
||||
'failed': failed,
|
||||
}
|
||||
|
||||
def hasRequiredTests(self):
|
||||
return self.part.getRequiredTests().count() > 0
|
||||
|
||||
def passedAllRequiredTests(self):
|
||||
|
||||
status = self.requiredTestStatus()
|
||||
|
Reference in New Issue
Block a user