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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user