[enhancement] BOM treeview

This commit is contained in:
Saurabh
2016-05-27 17:06:27 +05:30
parent d647945102
commit 5f48cb6128
2 changed files with 36 additions and 1 deletions

View File

@@ -5,7 +5,8 @@ from __future__ import unicode_literals
import frappe
@frappe.whitelist()
def get_children(parent):
def get_children():
parent = frappe.local.form_dict.get('bom')
return frappe.db.sql("""select item_code,
bom_no as value, qty,
if(ifnull(bom_no, "")!="", 1, 0) as expandable