got it!
frappe.ui.form.on("Sales Order", "quotemaster", function(frm) {
frappe.model.with_doc("QuoteMaster", frm.doc.quotemaster, function() {
var qmtable = frappe.model.get_doc("QuoteMaster", frm.doc.quotemaster)
$.each(qmtable.items, function(index, row){
d = frm.add_child("qm_items");
d.item_code = row.item_code;
d.qty = row.qty;
cur_frm.refresh_field("qm_items");
})
});
});
Thank you @rohit_w & @Maxwell_Morais for your help on this! I’ll be doing a writeup on how this works so hopefully other people can figure this out!