mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Adjust filters to limit contact options
This commit is contained in:
parent
cd50428685
commit
aeca25c8af
@ -52,6 +52,15 @@ function returnOrderFields(options={}) {
|
|||||||
},
|
},
|
||||||
contact: {
|
contact: {
|
||||||
icon: 'fa-user',
|
icon: 'fa-user',
|
||||||
|
adjustFilters: function(filters) {
|
||||||
|
let customer = getFormFieldValue('customer', {}, {modal: options.modal});
|
||||||
|
|
||||||
|
if (customer) {
|
||||||
|
filters.company = customer;
|
||||||
|
}
|
||||||
|
|
||||||
|
return filters;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
responsible: {
|
responsible: {
|
||||||
icon: 'fa-user',
|
icon: 'fa-user',
|
||||||
|
Loading…
Reference in New Issue
Block a user