mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-14 02:53:08 +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,
|
hidden: true,
|
||||||
},
|
},
|
||||||
sub_part: {
|
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: {},
|
quantity: {},
|
||||||
reference: {},
|
reference: {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user