fix: added filter for doctype in Session Default Settings
This commit is contained in:
parent
e2ef036991
commit
ae47281925
1 changed files with 15 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
// MIT License. See license.txt
|
||||
|
||||
frappe.ui.form.on('Session Default Settings', {
|
||||
refresh: function(frm) {
|
||||
frm.set_query('ref_doctype', 'session_defaults', function() {
|
||||
return {
|
||||
filters: {
|
||||
issingle: 0,
|
||||
istable: 0
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue