I have a question, what is the relationship between a Doctype and its JSON file?
I have created a custom Doctype and, to define its design, I used a JSON file, but when I access said Doctype, I get errors like Invalid Control Name in the layout.
I thought that the problem could be that the system not only uses the JSON file, but also uses the Doctype entry in Setup > Customize > Doctype to define the layout.
This JSON file is an exported format of the Database table that corresponds to your Doctype.
You don’t have to manually create any JSON files. System will create them.
If your doctype has Is Custom checked on creation then no JSON file will be made. It will stay just in the Database.
Now the important things:
If you want to change something (add/rearrange/change property of field) in a default ERPNext doctype, ALWAYS use only Customize Form or the Customize Option.
If you wish to create a new document, create it with Edit Doctype but keep those changes in a seperate app.
Also if you do changes via Customize Form and don’t wish to lose them: then follow advice as mentioned here:
Thank you very much for your help @root13F.
I am currently taking several Git tutorials and getting used to its different branches.
I needed this kind of information to understand Git and understand how to develop a little better ERPNext