Display a new module icon on desktop

Hi,
I try to add a new icon on my users desktop but I really can’t figure out why I can’t.

Here is what I need to do:
I have my app called sales_management. In this app the Sales Management module (native one) has its icon which is displayed on desktop. Now I added a new module called “My to do” with a doctype in it (“action”). I need to display an icon which leads to "action"doctype as a list.

Here is what I did:
In my app config/desktop.py file I added an item. So here is my code:

def get_data():
    return {
            "Sales Management": {
                    "color": "#589494",
                    "icon": "octicon octicon-book",
                    "type": "module",
                    "label": _("Sales Management")
            },
             "My to do": {
                    "color": "#f1c40f",
                    "icon": "icon-check",
                    "icon": "octicon octicon-check",
                    "label": _("My to do"),
                    "link": "List/action",
                    "doctype": "action",
                    "type": "list"
            },
    }

End I set users permissions to give them access to “My to do” module.

Do I do something wrong ?

Thx in advance for your help :slight_smile:

Is it checked in the User’s viewable modules? I think new modules are not automatically checked.

Hi rmehta,
Yes it checked on this page: “Show or Hide Modules” and the “Modules Access” part of my user.

Hi,
I also tried to deal with one module only (so I have one app: sales_management and one module: Sales Management) and to display the action doctype as a list (cf. desktop.py code below). The “My To Do” line appears on the page Show or Hide Modules, it is checked on user permissions, users have full access to the action doctype but the icon does not show up :frowning:
Do I have to edit another file or something ?

Below the code I have in frappe-bench/apps/sales_management/sales_management/config/desktop.py

def get_data():
return {
        "Sales Management": {
            "color": "#589494",
            "icon": "octicon octicon-book",
            "type": "module",
            "label": _("Sales Management")
        },
        "My To Do": {
			"color": "#f1c40f",
			"icon": "icon-check",
			"icon": "octicon octicon-check",
			"label": _("My To Do"),
			"link": "List/action",
			"doctype": "action",
			"type": "list"
		},
}

Hi everyone,

I really can’t display new icons. Can this have something to do with those old issues #607 #629?

Regards

Laurent

you are also create module.txt page?

Hi panka. I don’t know what you mean exactly, but I added the new module in the modules.txt file of my app yes. Do you have any other idea?

ok you are using frappe/ERPnext right?
and your module not show in all applications.

@lleleu what version are you on?

You might have to enable the module for new users.

I am on version 5

Ok for any reason it works for new users only. Is their any way to make it work for every user (including the "old"ones)?

A new module is not automatically checked for old users, you will to check it in their “Modules Section”. Will push out a fix later today.