mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bugfix: Select test report template
- Actually, two bugs!
This commit is contained in:
parent
ee0df29af0
commit
54d0c4e8a8
@ -180,7 +180,7 @@ class TestReport(ReportTemplateBase):
|
||||
Test if this report template matches a given StockItem objects
|
||||
"""
|
||||
|
||||
filters = validateFilterString(self.part_filters)
|
||||
filters = validateFilterString(self.filters)
|
||||
|
||||
items = StockItem.objects.filter(**filters)
|
||||
|
||||
|
@ -237,7 +237,7 @@ class TestReportFormatForm(HelperForm):
|
||||
|
||||
for template in templates:
|
||||
if template.matches_stock_item(self.stock_item):
|
||||
choices.append(template)
|
||||
choices.append((template.pk, template))
|
||||
|
||||
return choices
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user