[refactor] Remove MPTT mixin from StockItem model (#12360)

* Remove MPTT from StockItem model

* cleanup stock fixture file

* Remove tree rebuild code for StockItem

* Adjust API

* Update CHANGELOG  and API version

* remove tree references

* Additional checks

* Remove unused tests

* Add data migration test

* fix fk fields

* Cleanup

* Tweak unit test

* Revert bulk-create in unit test

* Don't rebuild StockItem models

* Add bulk_create_and_fetch helper model

- Overcome limitations of mysql

* Add unit test for new bulk-create helper

* Apply new helper to codebase

* Adjust unit test

* bug fix

* Adjust query limits

* Remove assert
This commit is contained in:
Oliver
2026-07-13 15:09:27 +10:00
committed by GitHub
parent 85e13b26ec
commit 766a8b41db
21 changed files with 434 additions and 541 deletions
+1 -1
View File
@@ -299,7 +299,7 @@ export default function StockDetail() {
content: stockitem?.pk ? (
<StockItemTable
tableName='child-stock'
params={{ ancestor: stockitem.pk }}
params={{ parent: stockitem.pk }}
/>
) : (
<Skeleton />