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