Can't find DocType files?

I have ERPNext 14 set up in production mode. I’d like to edit one of the DocType forms to add a button and a popup.

As I understand it, I need to edit Lead.py, however, I can’t see the DocType.py files.

There are no files of any kind showing in frappe-bench/sites/erp.domain.com

Hi @oguruma:

Files are located under yourbench/app folder.
Anyway, this is not the best way to customize doctype, because your changes will be gone with any update.

Use client/server script instead.
Hope this helps.