fix: add child button in coa tree (#28413)

This commit is contained in:
Ahmed Shareef 2021-11-22 10:16:58 +04:00 committed by GitHub
parent 624e58d1de
commit 3a2074ce05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ frappe.treeview_settings["Account"] = {
&& node.expandable && !node.hide_add;
},
click: function() {
var me = frappe.treeview_settings['Account'].treeview;
var me = frappe.views.trees['Account'];
me.new_node();
},
btnClass: "hidden-xs"