fix: Hide child doctypes from Open Documents

This commit is contained in:
Faris Ansari 2020-11-04 13:01:32 +05:30
parent 7c6cd34c51
commit 59bd093105

View file

@ -2,12 +2,19 @@
// For license information, please see license.txt
frappe.ui.form.on('Notification Settings', {
onload: () => {
onload: (frm) => {
frappe.breadcrumbs.add({
label: __('Settings'),
route: '#modules/Settings',
type: 'Custom'
});
frm.set_query('subscribed_documents', () => {
return {
filters: {
istable: 0
}
};
});
},
refresh: (frm) => {