fix: added filter for doctype in Session Default Settings

This commit is contained in:
Rucha Mahabal 2019-07-25 11:52:32 +05:30
parent e2ef036991
commit ae47281925

View file

@ -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
}
};
});
}
});