How to fetch Data from other DocType in newly created DocType?

Hello Team,

I have created a new DocType, some of fields are filled manually but some should be fetched from other DocType, e.g like Sales order to Sales Invoice.

How can I create Customization which can directly fetch relevant data into specified fields?

Thanks !

@parmartejas

If there is linking of Sales Order or Sales Invoice. You can easily feched data using add_fetch

check this for add_fetch

Or you can write script for that.

You can easily feched data using add_fetch. If there is linking of Sales Order or Sales Invoice.

Thanks for revert