def add_custom_doctypes(data, doctype_info):
 add_section(data, _(u'Documents'), u'fa fa-star', [d for d in doctype_info if (d.custom and (d.document_type in (u'Document', u'Transaction')))])
 add_section(data, _(u'Setup'), u'fa fa-cog', [d for d in doctype_info if (d.custom and (d.document_type in (u'Setup', u'Master', u'')))])

def add_custom_doctypes ( data , doctype_info ) : add_section ( data , _ ( u'Documents' ) , u'fa fa-star' , [ d for d in doctype_info if ( d . custom and ( d . document_type in ( u'Document' , u'Transaction' ) ) ) ] ) add_section ( data , _ ( u'Setup' ) , u'fa fa-cog' , [ d for d in doctype_info if ( d . custom and ( d . document_type in ( u'Setup' , u'Master' , u'' ) ) ) ] )
adds custom doctypes to modules setup via config/desktop .