2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Required for order fix (#5077)

* Fix part tables on index page

- Stop table filters overriding each other

* Refactor "needed for build" table

- Now shows amount actually needed

* Fix typo

* js fix

* linting

* Fix warning messages on index page

* js linting
This commit is contained in:
Oliver
2023-06-20 12:39:18 +10:00
committed by GitHub
parent 4c9d4add2c
commit 09cc654530
7 changed files with 213 additions and 118 deletions

View File

@ -962,7 +962,7 @@ class PartFilter(rest_filters.FilterSet):
depleted_stock = rest_filters.BooleanFilter(label='Depleted Stock', method='filter_depleted_stock')
def filter_deployed_stock(self, queryset, name, value):
def filter_depleted_stock(self, queryset, name, value):
"""Filter the queryset based on whether the part is fully depleted of stock"""
if str2bool(value):