mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #2129 from SchrodingersGat/sub-part-from-bom
Add option to BomItem form to create a new part
This commit is contained in:
commit
8d33ee6298
@ -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