34 lines
No EOL
734 B
Markdown
34 lines
No EOL
734 B
Markdown
To create a module icon for a Page, List or Module, you will have to edit the `config/desktop.py` file in your app.
|
|
|
|
In this file you will have to write the `get_data` method that will return a dict object with the module icon parameters
|
|
|
|
### Example 1: Module Icon
|
|
|
|
def get_data():
|
|
return {
|
|
"Accounts": {
|
|
"color": "#3498db",
|
|
"icon": "octicon octicon-repo",
|
|
"type": "module"
|
|
},
|
|
}
|
|
|
|
### Example 2: List Icon
|
|
|
|
def get_data():
|
|
return {
|
|
"To Do": {
|
|
"color": "#f1c40f",
|
|
"icon": "icon-check",
|
|
"icon": "octicon octicon-check",
|
|
"label": _("To Do"),
|
|
"link": "List/ToDo",
|
|
"doctype": "ToDo",
|
|
"type": "list"
|
|
},
|
|
}
|
|
|
|
|
|
Note: Module views are visible based on permissions.
|
|
|
|
<!-- markdown --> |