fix: Hide Apply To for Single doctypes
This commit is contained in:
parent
7abf44a68f
commit
fbaacd1c46
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue