I havea Doctype CAlled Service Request Which i Need to Export to my custom app, I Already tried Fixtures, Export Doctype from bench console, and after i change the module to my custom app it get created into my app, but after bench migrate the doctype “Custom?” Checkbox get auto tick & module changes to Selling again.
What is the best way to export a custom doctype to my custom app permanently without having any errors or system failure
@Abubakar_Falah Untick the Custom? check box and change the module to your custom app and save the document, it will get created in your custom app.
Already Treid but after bench migrate it get automatically tick and Module Changed to Selling from my Custom App
Cut the “Service Request“ doctype folder from backend and paste it into your custom app under doctype folder, change the module to your custom app and change the value for custom? to 0 in your json file
then do bench migrate and check
Might be the problem that, the Service Request doctype is in ERPNext’s Selling module
There is no Field name custom is my Servicer_request.json
Correct but Already Tried Changing the Module its not letting me change it, after bench migrate module selling get auto select.
There were no field custom in.json File, so i manually added custom at the end, and cut the doctype from selling and past it into my app and did bench migrate but still not working ?
Any Update Will be Highly Appreciated
Try to log in as original Administrator and then change this tickbox (its in the DocType settings in your original OP photo) … it should become false somewhere .. thats what he means
hello @Abubakar_Falah export-fixtures will only transfers records created from this doctype to you custom app and when you migrate this doctype should be there to transfers the data to, like the translations you translates in your custom app in dev mode and move this translations to the pro mode, if you want to export the doctype because of it’s constructure to your custom app you can just duplicate it and give it a new name and a module, but to move a doctype form it’s original module to use it in your custom app I’m not advice you to do so, it will be loss it’s like you edit an original doctype in ERPNext instead of using a custom field

