Custom Doctype with "Custom?" Option Enabled Doesnt Inherit Class Attributes

Hi.

You have another way to show a doctype on another module.

Make your own module and then make your doctype and associate him to your module. You can hide your module if you want to.

Then go to config folder of your module and make a python file with the name of the module that you want doctype to show.

Example:

Inside config folder of your module create an account.py file and in it put some thing like this:

from __future__ import unicode_literals
__author__ = 'luissaguas'

from frappe import _

def get_data():
	return [
		{
			"label": _("Setup"),
			"icon": "icon-star",
			"items": [
				{
					"type": "doctype",
					"name": "Incidence Base",
					"description": _("Incidence Base."),
				}
			]
		}
	]

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.

2 Likes