Doctypes created in custom app doesn't have all files

Hi,

I have created a custom app and am in the process of adding DocTypes under the same custom app. I have followed the instructions in the documentation, including:

  • Unchecking the “Custom” checkbox while creating the DocTypes.
  • Enabling Developer mode.

However, after creating the DocTypes, when I check the doctypes directory, it does not contain all the four files that are supposed to be generated automatically.

Could someone help me understand why this might be happening?

Thanks in advance for your assistance!

Did you restart the bench after enabling Developer mode?

First, verify the site.json located within the sites/<site_name> folder. Check for the presence of the setting "developer_mode": 1. Its absence means development mode is not enabled.

If the "developer_mode": 1 appears to be active, run:

bench migrate

After migration, restart the bench or clear the cache using

bench clear-cache

Make Sure You Login As Administrator while creating and modifying DocTypes as Administrator have all Permissions By Default.

Thank you all.
All the issues got resolved now.
Lesson learnt is, I have ignored some of the errors during bench installation.

Now I did set up everything from scratch without any errors and I’m able to create custom app, create doctypes and migrate it to another site.

Thank you,