Fetch single lines of Billing and Shipping Address to display on Sales Invoice

Hello all together,

is there any possibility to fetch a single line of the field doc.address_display or doc.shipping_address, for example “address_line1” to display it on the Sales Invoice?

Thank you very much.

Kind regards

Welcome to Community masc0122,

you have to fetch it from Address doctype,
you need to write a script to find Address Doctype with doc.address_title field and then fetch adressline1 from there to show in your Sales Invoice
you can find example script for how to fetch data from another doctype