Create new records during app installation

I was wondering if anyone could guide me on how to automatically create some records during a new app installation.
For instance I would like to create everal new records for item group? How should I go about that so that when the app is installed, these new item group are there.
I read about fixtures but it seems that this is only for new fields on a DocType.
Thanks in advance.
Best,
François

Using fixtures you can export anything you want.
Fixtures not only for custom fields, you can also export Website setting, reports.

Write fixtures for what you want to export.

Also you can write function and call it from hooks after_install event.
This will run after installing app.

after_install = "erpnext.setup.install.after_install"
1 Like