2
0
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:
Oliver Walters
2020-05-17 22:33:41 +10:00
parent 02b0c0831d
commit 1cc0977816
6 changed files with 19 additions and 9 deletions

View File

@ -1000,6 +1000,9 @@ class StockItem(MPTTModel):
'failed': failed,
}
def hasRequiredTests(self):
return self.part.getRequiredTests().count() > 0
def passedAllRequiredTests(self):
status = self.requiredTestStatus()