mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-20 05:46:34 +00:00
Bugfix for stock report filter
This commit is contained in:
@ -193,6 +193,9 @@ class TestReport(ReportTemplateBase):
|
||||
|
||||
items = StockItem.objects.filter(**filters)
|
||||
|
||||
# Ensure the provided StockItem object matches the filters
|
||||
items = items.filter(pk=item.pk)
|
||||
|
||||
return items.exists()
|
||||
|
||||
def get_context_data(self, request):
|
||||
|
Reference in New Issue
Block a user