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

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.

主站蜘蛛池模板: 新田县| 台北市| 高雄县| 阿拉善右旗| 偃师市| 祁阳县| 福清市| 呼和浩特市| 阿拉善盟| 奈曼旗| 若羌县| 古丈县| 嘉荫县| 岳普湖县| 盐源县| 青岛市| 嘉峪关市| 淅川县| 万荣县| 施秉县| 平潭县| 五华县| 大洼县| 甘洛县| 黔江区| 庄浪县| 屯留县| 东台市| 宁南县| 犍为县| 台山市| 遂宁市| 聂拉木县| 藁城市| 锡林郭勒盟| 德庆县| 石渠县| 绿春县| 墨竹工卡县| 四会市| 孝昌县|