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

Adding an icon

Our module is looking good. Why not add an icon to it to make it look even better? For this, we just need to add a static/description/icon.png file to the module, with the icon to be used.

We will be reusing the icon of the existing Notes application, so we should copy the odoo/addons/note/static/description/icon.png file into the custom-addons/todo_app/static/description directory.

The following commands should do that trick for us:

$ cd ~/odoo-dev
$ mkdir -p ./custom-addons/todo_app/static/description
$ cp ./odoo/addons/note/static/description/icon.png ./custom-addons/todo_app/static/description

Now, if we update the module list, our module should be displayed with the new icon.

主站蜘蛛池模板: 赤城县| 建水县| 孟州市| 隆化县| 清苑县| 汤阴县| 瑞金市| 临湘市| 枝江市| 宜春市| 上饶县| 交城县| 黄大仙区| 房山区| 宝兴县| 许昌县| 巴马| 潼关县| 芜湖市| 抚宁县| 宣恩县| 同江市| 大新县| 沁阳市| 南皮县| 油尖旺区| 钦州市| 兴义市| 济南市| 城固县| 榆树市| 公安县| 盐源县| 荃湾区| 佛学| 德惠市| 德清县| 宁都县| 遂宁市| 会理县| 拉萨市|