2
0
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:
Oliver
2024-11-01 07:23:26 +11:00
committed by GitHub
parent 801b32e4e3
commit 871cd905f1
6 changed files with 411 additions and 261 deletions

View File

@ -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'
)