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

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.

主站蜘蛛池模板: 千阳县| 洪江市| 台湾省| 彩票| 措美县| 沂南县| 尼玛县| 洞头县| 南陵县| 莎车县| 沈阳市| 漳平市| 施秉县| 双江| 乌拉特后旗| 高清| 新安县| 新乡市| 兴安县| 资源县| 遂宁市| 大英县| 合江县| 永定县| 长岛县| 莆田市| 鞍山市| 阿瓦提县| 湾仔区| 新源县| 白银市| 丰城市| 四平市| 皮山县| 尼木县| 卢氏县| 农安县| 黔江区| 乌审旗| 弥渡县| 兴安县|