2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

[PUI] BOM table updates (#7561)

* Update BOM table for PUI

- Display "validated" column
- Allow ordering by "validated" column

* Update table rowActions

* Add row action to validate BOM line

* Enable bulk deletion of BOM items
This commit is contained in:
Oliver
2024-07-05 16:39:54 +10:00
committed by GitHub
parent 13dbfd0b14
commit 58f12f5ce5
5 changed files with 56 additions and 41 deletions

View File

@ -1872,6 +1872,7 @@ class BomList(BomMixin, ListCreateDestroyAPIView):
'inherited',
'optional',
'consumable',
'validated',
'pricing_min',
'pricing_max',
'pricing_min_total',

View File

@ -1458,7 +1458,7 @@ class BomItemSerializer(InvenTree.serializers.InvenTreeModelSerializer):
- This saves a bunch of database requests
"""
part_detail = kwargs.pop('part_detail', False)
sub_part_detail = kwargs.pop('sub_part_detail', False)
sub_part_detail = kwargs.pop('sub_part_detail', True)
pricing = kwargs.pop('pricing', True)
super().__init__(*args, **kwargs)