Hi All,
Thanks, I found the problems. Here are some error on my server code.
@frappe.whitelist()
def get_child_table(doc):
frappe.msgprint("function get_child_table excuted")
doc_a = frappe.get_doc("Item",doc)
if doc_a:
frappe.msgprint("Doctype Item got!")
else:
frappe.msgprint("Doctype Item wasn't got!")
list1 = []
field_test = doc_a.get("item_length_uom")
if field_test:
frappe.msgprint("item_length_uom got!")
for t in doc_a.get("item_length_uom"):
list1.append({
'item_size_name':t.item_size_name,
'length':t.length,
'width':t.width,
'height':t.height,
'lwh_unit':t.lwh_unit,
'amount':t.amount
})
frappe.msgprint(list1)
return list1