2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-15 08:48:11 +00:00

Rearrange button options for StockItem

This commit is contained in:
Oliver Walters
2021-01-07 00:18:18 +11:00
parent 735a3d2eb2
commit bb72658e76
4 changed files with 56 additions and 10 deletions

View File

@@ -247,7 +247,7 @@ class TestReportFormatForm(HelperForm):
templates = TestReport.objects.filter(enabled=True)
for template in templates:
if template.matches_stock_item(self.stock_item):
if template.enabled and template.matches_stock_item(self.stock_item):
choices.append((template.pk, template))
return choices