Good Morning,
I have created a custom app called “Healthcare CheckIn” and I would like to add an icon to the desktop (a link to a custom report created by the app). I have added the following code in apps/uft_healthcare_checkin/uft_healthcare_checkin/config/desktop.py:
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
"Appointments Today": {
"color": "blue",
"icon": "octicon octicon-file-directory",
"label": "My Cool Title",
"link": "query-report/Appointments Today",
"type": "link"
}
}
I then ran “bench migrate && bench restart”. I also clicked the “reload” button from the user menu. The icon is not on the desktop, however, I do see it listed under “Set Desktop Icons”. The report can be viewed by going to “/desk#query-report/Appointments Today”. I am logged in as Administrator. Any ideas what I did wrong?
^ click on the image to see the entry - the inline version is cropped.