mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 03:55:41 +00:00
Add option to BomItem form to create a new part
This commit is contained in:
@ -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: {},
|
||||||
|
Reference in New Issue
Block a user