Fetch feild within the doctype

Try the following links:

https://docs.erpnext.com/docs/v13/user/manual/en/customize-erpnext/articles/how-to-add-master-link-and-fetch-data-from-the-same

It would also help if you can elaborate the use case a bit and specify what field data you’re trying to pull and state the source.