How migrate changes to erpNext doctype

Hi, I created some fields on Customer doctype, how can migrate this changes to my production environment ?

1 Like

I don’t know of an automated way to do this. Right now I just do it manually by documenting what changed in dev and then doing same changes in prod. This would be great to know if it can be done automagically.

If you have custom app checkout fixtures. Any Doctype can be exported as a fixture.
Useful for Custom Field, Property Setter, Print Format DocTypes

https://frappe.github.io/frappe/user/en/guides/app-development/how-to-create-custom-fields-during-app-installation

using filters for fixtures in hooks.py

It is easier to import Custom Script into fixtures by adding them to custom_scripts folder. Name the files as per the doctypes on which custom script is to be imported. Also remove Custom Script from fixtures in hooks.py or it will try to import Custom Script twice, once from custom_script.json and once from custom_scripts directory

e.g.

2 Likes