官术网_书友最值得收藏!

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

主站蜘蛛池模板: 广昌县| 大城县| 安丘市| 乌兰县| 本溪市| 抚顺市| 江源县| 海淀区| 卢龙县| 榆中县| 黎城县| 冕宁县| 泌阳县| 健康| 嘉善县| 台中市| 辉南县| 芦山县| 车致| 娱乐| 肇东市| 株洲县| 仁布县| 芷江| 方正县| 建湖县| 衡阳县| 太和县| 沽源县| 绥宁县| 寻乌县| 曲阜市| 汝城县| 通河县| 固原市| 呈贡县| 罗田县| 夹江县| 长宁县| 利津县| 象山县|