Add Address To Custom Doctype

Hi there.
I want to add the Address by clicking the “add address” button and it should present in the queue in my Custom DocType just like “customer doctype”. I have created the fields address_html in DocType and I want to know which python code need to add into the server side to get the datas.

Please let me know how to do this.