fix: Hide Apply To for Single doctypes

This commit is contained in:
Faris Ansari 2021-03-17 11:30:42 +05:30
parent 7abf44a68f
commit fbaacd1c46

View file

@ -53,6 +53,8 @@ frappe.ui.form.on('Client Script', {
},
dt(frm) {
frm.toggle_display('view', !frappe.boot.single_types.includes(frm.doc.dt));
if (!frm.doc.script) {
frm.events.add_script_for_doctype(frm, frm.doc.dt);
}