mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-19 06:27:49 +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:
1 parent
801b32e4e3
commit
871cd905f1
6 files changed
+411
-261
No files matched your search
@@ -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