mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-12 20:00:35 +00:00
Adjust filters to limit contact options
This commit is contained in:
1 parent
cd50428685
commit
aeca25c8af
1 file changed
+9
@@ -52,6 +52,15 @@ function returnOrderFields(options={}) {
|
||||
},
|
||||
contact: {
|
||||
icon: 'fa-user',
|
||||
adjustFilters: function(filters) {
|
||||
let customer = getFormFieldValue('customer', {}, {modal: options.modal});
|
||||
|
||||
if (customer) {
|
||||
filters.company = customer;
|
||||
}
|
||||
|
||||
return filters;
|
||||
}
|
||||
},
|
||||
responsible: {
|
||||
icon: 'fa-user',
|
||||
|
||||
Reference in new issue
Block a user