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

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.

主站蜘蛛池模板: 定远县| 河曲县| 铁岭县| 蒙山县| 承德市| 鄱阳县| 道真| 泰安市| 沽源县| 廉江市| 措勤县| 拜泉县| 丹棱县| 科技| 讷河市| 东方市| 彰化县| 星子县| 城固县| 方山县| 调兵山市| 永定县| 合川市| 塘沽区| 达拉特旗| 宁强县| 博湖县| 美姑县| 四会市| 河南省| 镇赉县| 酒泉市| 卫辉市| 肥乡县| 丰都县| 海伦市| 珲春市| 凤山市| 新龙县| 杭州市| 梁河县|