fix: Only show importable doctypes

This commit is contained in:
Faris Ansari 2019-09-02 12:57:21 +05:30
parent b099414cf8
commit c3d85cb4bd

View file

@ -26,6 +26,14 @@ frappe.ui.form.on('Data Import Beta', {
}, 2000);
}
});
frm.set_query('reference_doctype', () => {
return {
filters: {
allow_import: 1
}
}
});
},
refresh(frm) {