InvenTree/InvenTree/part/fixtures
Oliver 4f029d4d81
Improvements for part creation API endpoint (#4281)
* Refactor javascript for creating a new part

* Simplify method of removing create fields from serializer

* Fix bug which resulted in multiple model instances being created

* remove custom code required on Part model

* Reorganize existing Part API test code

* Add child serializer for part duplication options

* Part duplication is now handled by the DRF serializer

- Improved validation options
- API is self-documenting (no more secret fields)
- More DRY

* Initial stock is now handled by the DRF serializer

* Adds child serializer for adding initial supplier data for a Part instance

* Create initial supplier and manufacturer parts as specified

* Adding unit tests

* Add unit tests for part duplication via API

* Bump API version

* Add javascript for automatically extracting info for nested fields

* Improvements for part creation form rendering

- Move to nested fields (using API metadata)
- Visual improvements
- Improve some field name / description values

* Properly format nested fields for sending to the server

* Handle error case for scrollIntoView

* Display errors for nested fields

* Fix bug for filling part category

* JS linting fixes

* Unit test fixes

* Fixes for unit tests

* Further fixes to unit tests
2023-02-02 09:24:16 +11:00
..
bom.yaml Allow searching of BOM List API endpoint (#3296) 2022-07-06 10:09:58 +10:00
category.yaml yaml! 2021-05-06 14:38:13 +02:00
params.yaml Improvements for part creation API endpoint (#4281) 2023-02-02 09:24:16 +11:00
part.yaml fix trailing 2022-05-20 13:20:55 +02:00
part_pricebreaks.yaml added test for internal prices 2021-06-13 15:01:03 +02:00
test_templates.yaml fix endline 2022-05-20 13:35:07 +02:00