How to add a customized icon in your ERPNext app?

Hello,

Here I am giving an information through my blog regarding the steps which you should follow to add the customized icon for your app.

Step 1:-

Add your custom icon* into assets folder which is inside the sites.
* only (.svg) file support for your icon.

                                  frappe-bench/sites/assets/icon.svg



Step 2:-

Write below code in desktop.py file of your app.

Path:- frappe-bench/apps/ups_integration/ups_integration/config/desktop.py

def get_data():
return [
{
"module_name": "ups_integration",
"color": "#C5C159",
"icon": "assets/ups_icon.svg",
"type": "module",
"label": _("UPS Freight Management")
}
]

Step 3:-

Migrate your bench to reflect the changes in your site.


Thank You.


Comments

Post a Comment