'Returns dashboard setup related to this doctype.
This method will return the `data` property in the
`[doctype]_dashboard.py` file in the doctype folder'

def get_dashboard_data(self):

    data = frappe._dict()
    try:
        module = load_doctype_module(self.name, suffix=u'_dashboard')
        if hasattr(module, u'get_data'):
            data = frappe._dict(module.get_data())
    except ImportError:
        pass
    return data
