Add option to BomItem form to create a new part

This commit is contained in:
Oliver 2021-10-11 10:40:03 +11:00
parent 8dddb200c7
commit ede4ac9219

View File

@ -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: {},