disable expand_all button for BOM (#13015)

This commit is contained in:
Zarrar 2018-02-21 14:46:41 +05:30 committed by Nabin Hait
parent 8a77a0e1e4
commit 67f74414c4

View File

@ -13,6 +13,7 @@ frappe.treeview_settings["BOM"] = {
disable_add_node: true,
root_label: "BOM", //fieldname from filters
get_tree_root: false,
show_expand_all: false,
get_label: function(node) {
if(node.data.qty) {
return node.data.qty + " x " + node.data.item_code;