I have a custom doctype which I created with the Custom checkbox enabled that is attached to the Accounts module. I enabled it because it allows the Doctype to be shown in the Accounts menu. If I don’t, the only other way to expose the Doctype in the menu is to edit the accounts.py file in the config folder which I don’t really think is a good idea because that file gets updated once in awhile and I will have to stash changes before updating and subsequently reapplying my required changes.
What I found out is if I select the “Custom?” option when creating the doctype, when viewing the custom Doctype the system treats it as a “generic” document and therefore it doesn’t inherit the attributes of the class specified in the custom py files.
My question is:
Would it be possible to have some functionality to expose Doctypes in menus without having to configure the config files whilst still treating the Doctype as a class on its own as opposed to a “generic” document?
or
Would it be possible to enable “Custom?” Doctypes to inherit the attributes of the class specified in the custom py files?
You must change name and description in accordance with your module. If you want your module in Documents then change label to Documents. See config folder of erpnext to see more examples.
This way you have more control.
@luisfmfernandes thanks for the suggestion, I am aware of that option but as of now, the custom Doctype which I have needs to be in the Accounts module. Which is why I am asking if there is any option to expose the custom Doctype in the Accounts menu without having to change the config file or if the Custom? Doctypes could inherit the class.
@bohlian I have been wanting to do this sometime, to make Modules and DocTypes discoverable via the UI without changing the config file. WIll put it on my list (again)
@kolate_sambhaji, Thanks for your suggestion, I am aware of that option but I’m actually asking for an option without having to create a new app or change the config file. Looks like we may have this option soon