2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 13:35:40 +00:00

Build part change fix (#5808)

* Add DiffMixin class

- Allows us to compute "diffs" against items stored in the database, when they are being updated

* Prevent build order part from being changed after creation

* Remove "part" field from buildorder edit form

* Add unit test
This commit is contained in:
Oliver
2023-10-29 23:13:38 +11:00
committed by GitHub
parent 4cd4a84bac
commit a1f9260da6
4 changed files with 86 additions and 1 deletions

View File

@ -130,6 +130,9 @@ function editBuildOrder(pk) {
var fields = buildFormFields();
// Cannot edit "part" field after creation
delete fields['part'];
constructForm(`{% url "api-build-list" %}${pk}/`, {
fields: fields,
reload: true,