mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix form filters for "default_supplier"
This commit is contained in:
parent
39cab4690d
commit
d2b9993e96
@ -94,7 +94,12 @@ function partFields(options={}) {
|
|||||||
},
|
},
|
||||||
default_location: {
|
default_location: {
|
||||||
},
|
},
|
||||||
default_supplier: {},
|
default_supplier: {
|
||||||
|
filters: {
|
||||||
|
part_detail: true,
|
||||||
|
supplier_detail: true,
|
||||||
|
}
|
||||||
|
},
|
||||||
default_expiry: {
|
default_expiry: {
|
||||||
icon: 'fa-calendar-alt',
|
icon: 'fa-calendar-alt',
|
||||||
},
|
},
|
||||||
@ -315,6 +320,9 @@ function editPart(pk) {
|
|||||||
edit: true
|
edit: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Filter supplied parts by the Part ID
|
||||||
|
fields.default_supplier.filters.part = pk;
|
||||||
|
|
||||||
var groups = partGroups({});
|
var groups = partGroups({});
|
||||||
|
|
||||||
constructForm(url, {
|
constructForm(url, {
|
||||||
|
Loading…
Reference in New Issue
Block a user