Hi,
I want to know, where is the code to duplicate a doctype via code?
Regards
Ruchin Sharma
Hi,
I want to know, where is the code to duplicate a doctype via code?
Regards
Ruchin Sharma
Hello Ruchin,
When logged in as a Administrator, you can Duplicate a Doctype, just like we duplicate transactions, using Duplicate function under Menu.
Can you please elaborate your requirement with an example?
Hi Umair,
I want to see the code works behind this functionality.
Actually, I want to generate few duplicate item codes with this functionality.
Regards
Ruchin Sharma
You can create the duplicate doc using cur_frm.copy_doc()
method. If you wish to see the code behind the copy_doc
method just search for copy_doc
in *.js files.
Thanks, Makarand