mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Build line assembly filter (#7874)
* Fix typo * Add "assembly" filter to BuildLine API endpoint - Add filter for table in PUI * Bump API version
This commit is contained in:
parent
697ab1653a
commit
e1b0efaa12
@ -1,13 +1,16 @@
|
||||
"""InvenTree API version information."""
|
||||
|
||||
# InvenTree API version
|
||||
INVENTREE_API_VERSION = 237
|
||||
INVENTREE_API_VERSION = 238
|
||||
|
||||
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
|
||||
|
||||
|
||||
INVENTREE_API_TEXT = """
|
||||
|
||||
v238 - 2024-08-14 : https://github.com/inventree/InvenTree/pull/7874
|
||||
- Add "assembly" filter to BuildLine API endpoint
|
||||
|
||||
v237 - 2024-08-13 : https://github.com/inventree/InvenTree/pull/7863
|
||||
- Reimplement "bulk delete" operation for Attachment model
|
||||
- Fix permission checks for Attachment API endpoints
|
||||
|
@ -290,6 +290,7 @@ class BuildLineFilter(rest_filters.FilterSet):
|
||||
# Fields on related models
|
||||
consumable = rest_filters.BooleanFilter(label=_('Consumable'), field_name='bom_item__consumable')
|
||||
optional = rest_filters.BooleanFilter(label=_('Optional'), field_name='bom_item__optional')
|
||||
assembly = rest_filters.BooleanFilter(label=_('Assembly'), field_name='bom_item__sub_part__assembly')
|
||||
tracked = rest_filters.BooleanFilter(label=_('Tracked'), field_name='bom_item__sub_part__trackable')
|
||||
|
||||
allocated = rest_filters.BooleanFilter(label=_('Allocated'), method='filter_allocated')
|
||||
|
@ -307,7 +307,7 @@ export function BomTable({
|
||||
{
|
||||
name: 'sub_part_assembly',
|
||||
label: t`Assembled Part`,
|
||||
description: t`Show asssmbled items`
|
||||
description: t`Show assembled items`
|
||||
},
|
||||
{
|
||||
name: 'available_stock',
|
||||
|
@ -56,6 +56,11 @@ export default function BuildLineTable({
|
||||
label: t`Optional`,
|
||||
description: t`Show optional lines`
|
||||
},
|
||||
{
|
||||
name: 'assembly',
|
||||
label: t`Assembly`,
|
||||
description: t`Show assembled items`
|
||||
},
|
||||
{
|
||||
name: 'tracked',
|
||||
label: t`Tracked`,
|
||||
|
Loading…
Reference in New Issue
Block a user