Most of the odoo modules have demo data, for example: crm\data\crm_lead_demo.xml for CRM demo data.
So my question is how demo data like this created? Is it just simple line-by-line coding or we have some special way to quickly convert extisting data in the system into such importable form?