2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Control build allocation of optional BOM items (#4090)

* Control build allocation of optional BOM items

- User can specify in form whether optional items are allocated
- Default = False

* Updated unit test
This commit is contained in:
Oliver
2022-12-21 21:22:59 +11:00
committed by GitHub
parent d9e99e38d2
commit 0e8563ebee
4 changed files with 23 additions and 4 deletions

View File

@ -2422,6 +2422,9 @@ function autoAllocateStockToBuild(build_id, bom_items=[], options={}) {
substitutes: {
value: true,
},
optional_items: {
value: false,
},
};
constructForm(`/api/build/${build_id}/auto-allocate/`, {