DocType | Quotation | Duplicate | Not in Developer Mode!

Hi there,

I’m trying to duplicate the Quotation docType and I’m running on the error below:

Not in Developer Mode! Set in site_config.json or make 'Custom' DocType

Step by step

DocType > Quotation

DocType > Quotation > Duplicate

DocType > Quotation > Duplicate > Settings

DocType > Quotation > Duplicate > Settings > Naming

DocType > Quotation > Duplicate > Settings > Naming > Error message

Hi,

You need to put your site in developer mode. Please refer to this for more info: How to Enable Developer Mode in Frappe (frappeframework.com)

Thanks,

Divyesh Mangroliya

1 Like

Hi @mangroliya,

I’m using ERPNext Cloud and I’m not self-hosted. In this case, I’m afraid I can’t access the code, or am I wrong?

In addition to that, earlier today I duplicated the Customer DocType, and I didn’t encounter the error I’m currently facing with the Quotation DocType.

Thank you for your help! :pray:

Hi,

For development, I personally prefer self-hosted setup. Also, create a custom app and do all the modifications in that app. Don’t change any code directly.

Duplicating Doctype will not duplicate the underlying python code, and you need to write all/copy code as per your need.

Thanks,

Divyesh Mangroliya

1 Like

I see. I’m afraid that’s not my case. I just want to duplicate the module and customize a few fields.

By the way, thank you for your help and for sharing it. :clap:

By duplicate only form will be duplicate the code of backend will not duplicate.

If you want same functionality then you should run ERPNext in development server.
There you will duplicate Form and also copy the JavaScript and Python code from core doctype to duplicated doctype.

Hi,

For Adding/Changing few fields, you don’t need to duplicate the doctypes/Module.

You can use the Customize Form Functionality for that. Please refer this doc: Customize Form (erpnext.com)

Customization can be done on Frappe Cloud and can be preserved during upgrades.
Thanks,

Divyesh Mangroliya

Hi @andersoncavalcante,
You can add field custom field to Doctype by Customize Form but if you want to create replica of that doctype then you can achieve that by custom app.