2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 19:20:55 +00:00

Add a button if a stock item test report is available

This commit is contained in:
Oliver Walters
2020-05-22 21:38:05 +10:00
parent 1ad7e699a9
commit 71681bfda1
3 changed files with 12 additions and 1 deletions

View File

@ -212,6 +212,7 @@ class TestReport(ReportTemplateBase, PartFilterMixin):
def getSubdir(self):
return 'test'
# Requires a stock_item object to be given to it before rendering
stock_item = None
def get_context_data(self, request):