I just fetched the doc through fappe.db.get_doc() and whatever fields I needed of that doc in my current frm, just putting that.
linked_doc = frappe.db.get_doc(‘Doctype’, docname)
onload(frm)
{
frm.doc.field = linked_doc.field
}
I just fetched the doc through fappe.db.get_doc() and whatever fields I needed of that doc in my current frm, just putting that.
linked_doc = frappe.db.get_doc(‘Doctype’, docname)
onload(frm)
{
frm.doc.field = linked_doc.field
}