
上QQ阅读APP看书,第一时间看更新
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