{"id":22,"date":"2023-02-20T04:22:00","date_gmt":"2023-02-20T04:22:00","guid":{"rendered":""},"modified":"2024-01-28T09:05:27","modified_gmt":"2024-01-28T09:05:27","slug":"how-to-add-icon-image-for-custom-module-in-odoo16","status":"publish","type":"post","link":"https:\/\/pythonpower.in\/index.php\/2023\/02\/20\/how-to-add-icon-image-for-custom-module-in-odoo16\/","title":{"rendered":"How To Add Icon Image For Custom Module in Odoo16"},"content":{"rendered":"<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/pythonpower.in\/wp-content\/uploads\/2023\/02\/mqdefault.jpeg\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"127\" data-original-width=\"313\" height=\"260\" src=\"http:\/\/pythonpower.in\/wp-content\/uploads\/2023\/02\/mqdefault-300x122.jpeg\" width=\"640\" \/><\/a><\/div>\n<p>&nbsp;<span style=\"font-size: large;\"><b>How To Add Icon Image For Custom Module in Odoo16<\/b><\/span><\/p>\n<p style=\"font-family: &quot;Helvetica Neue&quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;\"><span style=\"font-size: medium;\"><b>To add an icon image for a custom module in Odoo 16, follow these steps:<\/b><\/span><\/p>\n<p style=\"font-family: &quot;Helvetica Neue&quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;\"><span style=\"font-size: medium;\"><b><br \/><\/b><\/span><\/p>\n<ol>\n<li style=\"font-family: &quot;Helvetica Neue&quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;\">Create a folder named &#8220;static&#8221; in your custom module directory, if it doesn&#8217;t already exist.<\/li>\n<li style=\"font-family: &quot;Helvetica Neue&quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;\">Inside the &#8220;static&#8221; folder, create a subfolder named &#8220;description&#8221; (i.e., &#8220;static\/description&#8221;).<\/li>\n<li style=\"font-family: &quot;Helvetica Neue&quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;\">In the &#8220;description&#8221; folder, add your icon image file. The file should be named &#8220;icon.png&#8221; and should be a PNG image file with a size of 128&#215;128 pixels.<\/li>\n<li style=\"font-family: &quot;Helvetica Neue&quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;\">In your module&#8217;s manifest file (i.e., &#8220;manifest.py&#8221;), add a line to specify the location of the icon file. For example, add the following line:<br \/>&#8216;icon&#8217;: &#8216;static\/description\/icon.png&#8217;,<\/li>\n<li style=\"font-family: &quot;Helvetica Neue&quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;\">Update your module in Odoo by going to the Apps menu and clicking on the &#8220;Update&#8221; button next to your module. This will reload your module and show the new icon image.<\/li>\n<\/ol>\n<p style=\"font-family: &quot;Helvetica Neue&quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;\">Note: If you want to use a different filename or file format for your icon image, you can specify it in the manifest file by changing the filename and file extension in the path. For example:<\/p>\n<p style=\"font-family: &quot;Helvetica Neue&quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;\">&#8216;icon&#8217;: &#8216;static\/description\/myicon.png&#8217;,<\/p>\n<p style=\"font-family: &quot;Helvetica Neue&quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;\"><\/p>\n<p style=\"font-family: &quot;Helvetica Neue&quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;\"><\/p>\n<div style=\"clear: both; text-align: center;\"><iframe loading=\"lazy\" allowfullscreen=\"\" height=\"402\" src=\"https:\/\/www.youtube.com\/embed\/9y96msSZixo\" width=\"594\" youtube-src-><\/iframe><\/div>\n<p><\/p>\n<p style=\"font-family: &quot;Helvetica Neue&quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;How To Add Icon Image For Custom Module in Odoo16 To add an icon image&hellip;<\/p>\n","protected":false},"author":2,"featured_media":87,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","_joinchat":[]},"categories":[5],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/posts\/22"}],"collection":[{"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":1,"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":88,"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/posts\/22\/revisions\/88"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/media\/87"}],"wp:attachment":[{"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}