mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bugfix for stock report filter
This commit is contained in:
parent
980cb9522b
commit
ef032d406f
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user