mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add option to BomItem form to create a new part
This commit is contained in:
parent
8dddb200c7
commit
ede4ac9219
@ -35,6 +35,18 @@ function bomItemFields() {
|
||||
hidden: true,
|
||||
},
|
||||
sub_part: {
|
||||
secondary: {
|
||||
title: '{% trans "New Part" %}',
|
||||
fields: function() {
|
||||
var fields = partFields();
|
||||
|
||||
// Set to a "component" part
|
||||
fields.component.value = true;
|
||||
|
||||
return fields;
|
||||
},
|
||||
groups: partGroups(),
|
||||
}
|
||||
},
|
||||
quantity: {},
|
||||
reference: {},
|
||||
|
Loading…
Reference in New Issue
Block a user