Fix form filters for "default_supplier"

This commit is contained in:
Oliver 2021-09-24 12:04:25 +10:00
parent 39cab4690d
commit d2b9993e96

View File

@ -94,7 +94,12 @@ function partFields(options={}) {
},
default_location: {
},
default_supplier: {},
default_supplier: {
filters: {
part_detail: true,
supplier_detail: true,
}
},
default_expiry: {
icon: 'fa-calendar-alt',
},
@ -315,6 +320,9 @@ function editPart(pk) {
edit: true
});
// Filter supplied parts by the Part ID
fields.default_supplier.filters.part = pk;
var groups = partGroups({});
constructForm(url, {