Fetching Address and Contacts to Another Doctype

Hi Team,
May you guide me on how to fetch Address and Contact of Customer, and map them to another doctype in erpnext. Note that The doctype does not have child doctype, address have to get mapped from Quotation to customized doctype named Cover Note.I have tried to use add_fetch( ) and frappe.db.get_value( ),within refresh function of the doctype with no avail.I am a newbie in this,How to go about solving this issue.
Much appreciated!

These examples should help-
https://erpnext.org/docs/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples

and this -

The above link is not working

https://erpnext.com/docs/user/manual/en/customize-erpnext/custom-scripts

1 Like