2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-02-25 16:17:58 +00:00

Supplier Part Updates (#11303)

* Add "primary" field to SupplierPart model

* Remove "default_supplier" field from the Part model

* Ensure only one SupplierPart can be "primary" for a given Part

* Update references to "default_supplier"

* Add 'primary' field to the SupplierPart API serializer

* update SupplierPart table

* Use bulk-update operations

* Bug fix for data migration

* Allow ordering by 'primary' field

* Tweak import message

* Edit 'primary' field in UI

* Fix checks in save() methods

* Better table updates

* Update CHANGELOG

* Bump API version

* Fix unit test

* Add unit test for API

* Playwright tests
This commit is contained in:
Oliver
2026-02-20 18:25:26 +11:00
committed by GitHub
parent 14d6d2354f
commit 3910cc5a50
21 changed files with 216 additions and 65 deletions

View File

@@ -1142,7 +1142,7 @@ def import_records(
os.remove(datafile)
os.remove(authfile)
info('Data import completed')
success('Data import completed')
@task(