mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 20:15:44 +00:00
[PUI] Table refactor (#8395)
* Refactor table header items out into new file * Improve BomItem API query * Allow table header to be removed entirely * revert BomTable * Re-add "box" component * Reimplement partlocked attribute * Fix for PartDetail - Revert to proper panels * Updated playwright tests * Additional tests
This commit is contained in:
@ -1708,6 +1708,10 @@ class BomItemSerializer(
|
||||
'sub_part__stock_items__sales_order_allocations',
|
||||
)
|
||||
|
||||
queryset = queryset.select_related(
|
||||
'part__pricing_data', 'sub_part__pricing_data'
|
||||
)
|
||||
|
||||
queryset = queryset.prefetch_related(
|
||||
'substitutes', 'substitutes__part__stock_items'
|
||||
)
|
||||
|
Reference in New Issue
Block a user