- Odoo 12 Development Essentials
- Daniel Reis
- 102字
- 2021-07-02 14:18:45
Adding an icon
Modules can optionally have an icon representing them. In the case of modules creating a new app, this is particularly important, since the app is expected to have an icon in the apps menu.
To add an icon, to we need to add a static/description/icon.png file to the module, with the icon to be used.
To make it simpler, we will reuse the icon of the existing accounting application, copying the odoo/addons/account/static/description/icon.png file into the custom-addons/library_app/static/description directory.
In the command line, this can be done with the following code:
$ cd ~/odoo-dev $ mkdir -p ./custom-addons/library_app/static/description $ cp~/odoo-dev/odoo/addons/note/static/description/icon.png ./custom-addons/library_app/static/description
推薦閱讀
- 完全掌握Office 2010高效辦公超級手冊
- 中文版Rhino 5.0實用教程
- Excel從小白到小能手
- Docker技術入門與實戰
- 天天用的Office一百招
- 從零開始學PowerPoint 2010
- Unity 2017虛擬現實開發標準教程
- Excel公式與函數大辭典
- 新手易學:Word 2010+Excel 2010+PowerPoint 2010三合一
- Minecraft創客制作:用樂高、3D打印、Arduino等創建Minecraft真實世界
- Word/Excel/PowerPoint三合一辦公應用
- Excel 2007表格·數據·圖表完全自學手冊
- Office 2013從新手到高手(超值版)
- 人事管理政務網上公開的發展與對策
- Unity 3D\2D手機游戲開發:從學習到產品(第3版)