mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-29 02:54:34 +00:00
Extract "limit_choices_to" options for relatedfields
- Specify as 'filters' for 'related field' type - Extremely handy to be able to filter AJAX requests in a DRY manner!
This commit is contained in:
1 parent
f3ed05a09e
commit
ac7564d069
3 files changed
+19
-14
No files matched your search
@@ -45,6 +45,12 @@
|
||||
method: 'POST',
|
||||
title: '{% trans "Edit Part Details" %}',
|
||||
fields: {
|
||||
part: {
|
||||
filters: {
|
||||
}
|
||||
},
|
||||
quantity: {},
|
||||
/*
|
||||
name: {
|
||||
onEdit: function() {
|
||||
console.log('Edited name field');
|
||||
@@ -67,7 +73,6 @@
|
||||
purchaseable: {},
|
||||
salable: {},
|
||||
component: {},
|
||||
/*
|
||||
'website',
|
||||
'address',
|
||||
'phone',
|
||||
|
||||
Reference in new issue
Block a user