Here is one example to fetch customer in Delivery Note using frappe.client.get_value method.
Using this you can fetch values from another doc.
Using this you can fetch values from another doc.
frappe.call({
'method': 'frappe.client.get_value',
'args': {
'doctype': 'Delivery Note',
'fieldname': 'customer',
'filters': {
'name': 'DN-00003'
}
}
,
callback: function(r){
msgprint(r.message.customer);
}
});