Create Addresses while importing Leads?

I’d like to create an Address record while importing Leads, the same way you can import a Note.

Is this possble?

Yes, 2 ways:

  1. To my knowledge when importing the doctype, frappe runs, on_save, validate and on_insert controller methods, so you could add a new method and use frappe.new_doc() and generate the Addresses on the fly depending on the data provided in the Leads.csv file.

  2. Get the addresses template from import tool, add your addresses data from your Leads.csv into frappe. This will auto generate a Primary Key depending on what its been set to on the Address Doctype. With the Name Key generated for all addresses, you can add them to your Leads.csv import template. This means that its automatically mapped to Addresses doctype on Lead import.