How to duplicate a doctype along with its dependencies?
Hi @Dhanya_K
You can duplicate a doctype and all its code
For doctype field duplication
You will click on this button and then change the Module, also make sure Custom is unchecked.
then new doctype will create and also in the module there are three file created .js , .py , and .json
For Code duplication
Open the core doctype .js and .py file
Copy the whole code and paste it in your created doctype .js and .py
But duplicate doctype doesn’t work well in the latest version, and hard to save. we suggest to you to create a new doctype and set the field according to the scenario.