{"id":1805,"date":"2022-03-14T18:14:31","date_gmt":"2022-03-14T12:44:31","guid":{"rendered":"https:\/\/store.ksolves.com\/blog\/?p=1805"},"modified":"2022-03-25T16:41:16","modified_gmt":"2022-03-25T11:11:16","slug":"steps-to-add-css-and-javascript-files-in-odoo-module","status":"publish","type":"post","link":"https:\/\/store.ksolves.com\/blog\/odoo\/steps-to-add-css-and-javascript-files-in-odoo-module","title":{"rendered":"Steps To Add CSS and JavaScript Files In Odoo Module"},"content":{"rendered":"<p>Introducing CSS and javascript (and jQuery) allows you to modify the style of Odoo. It allows a user to open up a new set of options for adding an option in Odoo.<\/p>\n<p>This write-up will explain how to add CSS and JavaScript files in Odoo modules.<\/p>\n<p>Follow the step-by-step process to successfully add a CSS and JavaScript file in <a style=\"color: #0000ff;\" href=\"https:\/\/store.ksolves.com\/blog\/odoo-2\/impact-of-machine-learning-technology-on-odoo-erp\">Odoo ERP<\/a>.<\/p>\n<p>1. Create an XML file under the views folder. This XML will attach the CSS and javascript files in the module.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1812 lazyload\" data-src=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/assets-1024x576.png\" alt=\"assets.xml\" width=\"700\" height=\"394\" data-srcset=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/assets-1024x576.png 1024w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/assets-300x169.png 300w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/assets-768x432.png 768w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/assets-1536x864.png 1536w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/assets-2048x1152.png 2048w\" data-sizes=\"(max-width: 700px) 100vw, 700px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 700px; --smush-placeholder-aspect-ratio: 700\/394;\" \/><\/p>\n<p>2. Add this XML file path to your module manifest. This will load the XML file when the starting up for running.<\/p>\n<p><b>Note: <\/b>Ensure that you give the correct path and filename so that you can use it instantly without missing the file.<\/p>\n<p><span style=\"color: #eedb85;\">&#8216;data&#8217;<\/span>: <span style=\"color: #cacaca;\">[<\/span><\/p>\n<p><span style=\"color: #eedb85;\">\u00a0\u00a0\u00a0&#8216;views\/assets.xml&#8217;<\/span>,<\/p>\n<p><span style=\"font-weight: 400; color: #cacaca;\">]<\/span><span style=\"font-weight: 400; color: #eedb85;\">,<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1813 lazyload\" data-src=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/manifest-1024x552.png\" alt=\"manifest\" width=\"700\" height=\"377\" data-srcset=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/manifest-1024x552.png 1024w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/manifest-300x162.png 300w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/manifest-768x414.png 768w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/manifest-1536x828.png 1536w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/manifest-2048x1104.png 2048w\" data-sizes=\"(max-width: 700px) 100vw, 700px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 700px; --smush-placeholder-aspect-ratio: 700\/377;\" \/><\/p>\n<p>3. We need to inherit the Odoo assets backend template in assets.xml where all the CSS and javascript are linked in a bundle.<\/p>\n<p>When all CSS and JavaScript in Odoo are uploaded to assets, the initial step should be to call inherit id.<\/p>\n<p>You can utilize an \u2018XPath\u2019 to add your code files. Furthermore, adding resources is similar to adding a field to a view using inheritance.<\/p>\n<p>Here, you are only referring to a file instead of a field.<\/p>\n<p><span style=\"font-weight: 400; color: #cacaca;\">&lt;?xml version<\/span><span style=\"font-weight: 400; color: #eedb85;\">=&#8221;1.0&#8243; <\/span><span style=\"font-weight: 400; color: #cacaca;\">encoding<\/span><span style=\"color: #eedb85;\"><span style=\"font-weight: 400;\">=&#8221;utf-8&#8243; <\/span><span style=\"font-weight: 400;\">?<span style=\"color: #cacaca;\">&gt;<br \/>\n<\/span><\/span><\/span><span style=\"font-weight: 400; color: #00f0ff;\">&lt;odoo&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0<span style=\"color: #00f0ff;\">&lt;template<br \/>\n<\/span><\/span><span style=\"font-weight: 400; color: #cacaca;\">\u00a0 \u00a0 \u00a0 id<\/span><span style=\"font-weight: 400; color: #eedb85;\">=&#8221;assets_backend&#8221;<br \/>\n<\/span><span style=\"font-weight: 400; color: #cacaca;\">\u00a0 \u00a0 \u00a0 name<\/span><span style=\"font-weight: 400; color: #eedb85;\">=&#8221;Student Assets Backend &#8221;<br \/>\n<\/span><span style=\"font-weight: 400; color: #cacaca;\">\u00a0 \u00a0 \u00a0 inherit_id<\/span><span style=\"color: #eedb85;\"><span style=\"font-weight: 400;\">=&#8221;web.assets_backend&#8221;<\/span><span style=\"font-weight: 400; color: #00f0ff;\">&gt;<br \/>\n<\/span><\/span><span style=\"font-weight: 400;\"><span style=\"color: #00f0ff;\">\u00a0 \u00a0 \u00a0 &lt;xpath <\/span><\/span><span style=\"font-weight: 400; color: #cacaca;\">expr<\/span><span style=\"font-weight: 400; color: #eedb85;\">=&#8221;.&#8221; <\/span><span style=\"font-weight: 400; color: #cacaca;\">position<\/span><span style=\"font-weight: 400;\">=<span style=\"color: #eedb85;\">&#8220;inside&#8221;<\/span><\/span><span style=\"font-weight: 400; color: #00f0ff;\">&gt;<br \/>\n<\/span><span style=\"font-weight: 400;\"><span style=\"color: #00f0ff;\">\u00a0 \u00a0 \u00a0 \u00a0&lt;\/xpath&gt;<br \/>\n<\/span><\/span><span style=\"font-weight: 400;\"><span style=\"color: #00f0ff;\">\u00a0 \u00a0 &lt;\/template&gt;<br \/>\n<\/span><\/span><span style=\"font-weight: 400; color: #00f0ff;\">&lt;\/odoo&gt;<\/span><\/p>\n<p>The \u201cweb.assets_backend\u201d is already designed by Odoo that has all the JavaScript and CSS code. A user can inherit them for adding its CSS and javascript files within<b>.\u00a0<\/b><\/p>\n<p>The &lt;\/xpath&gt; expression suggests Odoo for introducing those files to the web.assets_backend main path.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1814 lazyload\" data-src=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/backend-min-1024x556.png\" alt=\"backend\" width=\"700\" height=\"380\" data-srcset=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/backend-min-1024x556.png 1024w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/backend-min-300x163.png 300w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/backend-min-768x417.png 768w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/backend-min-1536x834.png 1536w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/backend-min-2048x1112.png 2048w\" data-sizes=\"(max-width: 700px) 100vw, 700px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 700px; --smush-placeholder-aspect-ratio: 700\/380;\" \/><\/p>\n<h3 class=\"mt-4\"><b>Creating CSS \/JavaScript Files in Odoo<\/b><\/h3>\n<p>Let&#8217;s get started to generate CSS and JavaScript files in Odoo<b>.\u00a0<\/b><\/p>\n<ul>\n<li>Create a new folder called \u2018static\u2019 under Odoo&#8217;s recommendations.<\/li>\n<li>Open this folder and make a new folder called \u2018src.&#8217;<\/li>\n<li>After creating the &#8216;src&#8217; folder, make a new one called &#8216;CSS,&#8217; &#8216;js,&#8217; or &#8216;images,&#8217; based on the file you need to include.<\/li>\n<li>\n<h4 class=\"mt-4\"><strong>Create a CSS file<\/strong><\/h4>\n<\/li>\n<\/ul>\n<p>Follow the continuing steps to learn how to create a CSS file.<\/p>\n<p>4. Create a CSS file in the module, according to Odoo guidelines CSS files are always created under the \u2018static\/src\/css\u2019 folder.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1815 lazyload\" data-src=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/Profile-min-1024x575.png\" alt=\"Profile\" width=\"700\" height=\"393\" data-srcset=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/Profile-min-1024x575.png 1024w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/Profile-min-300x168.png 300w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/Profile-min-768x431.png 768w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/Profile-min-1536x862.png 1536w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/Profile-min-2048x1149.png 2048w\" data-sizes=\"(max-width: 700px) 100vw, 700px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 700px; --smush-placeholder-aspect-ratio: 700\/393;\" \/><\/p>\n<p>5. Link this CSS file path in the assets XML file.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1816 lazyload\" data-src=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS-file-path-1024x552.png\" alt=\" CSS file path\" width=\"700\" height=\"377\" data-srcset=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS-file-path-1024x552.png 1024w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS-file-path-300x162.png 300w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS-file-path-768x414.png 768w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS-file-path-1536x828.png 1536w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS-file-path-2048x1104.png 2048w\" data-sizes=\"(max-width: 700px) 100vw, 700px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 700px; --smush-placeholder-aspect-ratio: 700\/377;\" \/><\/p>\n<p><b>Note: <\/b>It is extremely important to add the name of your module to the path. After adding the module name then continue with static\/src\/css\/yourfilename.css\u201d\/&gt;.<\/p>\n<ul>\n<li aria-level=\"1\">\n<h4 class=\"mt-4\"><b>Create a JavaScript File<\/b><\/h4>\n<\/li>\n<\/ul>\n<p>6. Create a Js file in the module, according to Odoo guidelines Js files are always created under the \u2018static\/src\/js\u2019 folder.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1817 lazyload\" data-src=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/profilejs-1024x575.png\" alt=\"profilejs\" width=\"700\" height=\"393\" data-srcset=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/profilejs-1024x575.png 1024w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/profilejs-300x168.png 300w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/profilejs-768x431.png 768w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/profilejs-1536x862.png 1536w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/profilejs-2048x1149.png 2048w\" data-sizes=\"(max-width: 700px) 100vw, 700px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 700px; --smush-placeholder-aspect-ratio: 700\/393;\" \/><\/p>\n<p>7. Link this Js file path in the assets XML file.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1818 lazyload\" data-src=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/Js-file-path-min-1024x552.png\" alt=\"Js file path\" width=\"700\" height=\"377\" data-srcset=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/Js-file-path-min-1024x552.png 1024w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/Js-file-path-min-300x162.png 300w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/Js-file-path-min-768x414.png 768w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/Js-file-path-min-1536x828.png 1536w, https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/Js-file-path-min-2048x1104.png 2048w\" data-sizes=\"(max-width: 700px) 100vw, 700px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 700px; --smush-placeholder-aspect-ratio: 700\/377;\" \/><\/p>\n<p>8. At last, restart the Odoo server and update your module to check the changes.<\/p>\n<h3 class=\"mt-4\"><b>Wrapping Up!<\/b><\/h3>\n<p>Adding CSS and JavaScript files in the Odoo module is easy when you take the expert\u2019s advice. Without missing a single code line, add important files into the Odoo smoothly.<\/p>\n<p>For reaching out to the <strong><a style=\"color: #0000ff;\" href=\"https:\/\/store.ksolves.com\/blog\/odoo-2\/key-factors-to-choose-best-odoo-consultancy-things-to-know-126\">Odoo consultant<\/a><\/strong>, reach out to the following address:<\/p>\n<p>Website: <a style=\"color: #0000ff;\" href=\"https:\/\/store.ksolves.com\/\">https:\/\/store.ksolves.com\/<\/a><br \/>\nPhone:+1(646)-203-1075, +91-7498170227<br \/>\nEmail: <a style=\"color: #0000ff;\" href=\"mailto:sales@ksolves.com\">sales@ksolves.com<\/a><\/p>\n<p><i>Leave your comments below to get better clarification on CSS\/Js files in Odoo.<\/i><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1805\" class=\"pvc_stats all  \" data-element-id=\"1805\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" data-src=\"https:\/\/store.ksolves.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 16px; --smush-placeholder-aspect-ratio: 16\/16;\" \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introducing CSS and javascript (and jQuery) allows you to modify the style of Odoo. It allows a user to open [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1805\" class=\"pvc_stats all  \" data-element-id=\"1805\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" data-src=\"https:\/\/store.ksolves.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 16px; --smush-placeholder-aspect-ratio: 16\/16;\" \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":3,"featured_media":1806,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1805","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-odoo"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Learn to add CSS\/Js Files in Odoo Module<\/title>\n<meta name=\"description\" content=\"If you are looking for an easy method to add your CSS and JavaScript files in Odoo, follow this guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn to add CSS\/Js Files in Odoo Module\" \/>\n<meta property=\"og:description\" content=\"If you are looking for an easy method to add your CSS and JavaScript files in Odoo, follow this guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module\" \/>\n<meta property=\"og:site_name\" content=\"Ksolves Store Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-14T12:44:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-25T11:11:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS_Js.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"880\" \/>\n\t<meta property=\"og:image:height\" content=\"440\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Parul Gautam\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Parul Gautam\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/store.ksolves.com\/blog\/odoo\/steps-to-add-css-and-javascript-files-in-odoo-module\",\"url\":\"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module\",\"name\":\"Learn to add CSS\/Js Files in Odoo Module\",\"isPartOf\":{\"@id\":\"https:\/\/store.ksolves.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module#primaryimage\"},\"image\":{\"@id\":\"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module#primaryimage\"},\"thumbnailUrl\":\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS_Js.jpg\",\"datePublished\":\"2022-03-14T12:44:31+00:00\",\"dateModified\":\"2022-03-25T11:11:16+00:00\",\"author\":{\"@id\":\"https:\/\/store.ksolves.com\/blog\/#\/schema\/person\/24bfd358b29cc978fd6e7f809e28b7d2\"},\"description\":\"If you are looking for an easy method to add your CSS and JavaScript files in Odoo, follow this guide.\",\"breadcrumb\":{\"@id\":\"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module#primaryimage\",\"url\":\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS_Js.jpg\",\"contentUrl\":\"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS_Js.jpg\",\"width\":880,\"height\":440,\"caption\":\"Add CSS and JavaScript Files In Odoo Module\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/store.ksolves.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Steps To Add CSS and JavaScript Files In Odoo Module\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/store.ksolves.com\/blog\/#website\",\"url\":\"https:\/\/store.ksolves.com\/blog\/\",\"name\":\"Ksolves Store Blog\",\"description\":\"Where Great Ideas Change Your Business\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/store.ksolves.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/store.ksolves.com\/blog\/#\/schema\/person\/24bfd358b29cc978fd6e7f809e28b7d2\",\"name\":\"Parul Gautam\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/store.ksolves.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9eb990d177ece8faa608213c706ff36edd7f09fbb996e90aaa4d36dcb6f41cac?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9eb990d177ece8faa608213c706ff36edd7f09fbb996e90aaa4d36dcb6f41cac?s=96&d=mm&r=g\",\"caption\":\"Parul Gautam\"},\"description\":\"Parul Gautam is a Sr. Technical Writer who believes in bridging the gap between customers and Technologies. She can convert the aura of any Technology into Powerful Words. One time she can Jot Down her words and at the other, she will Tap on the Beats of Great Music. To Taste the Recipe of her Writing, hang on to the great Blogs.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn to add CSS\/Js Files in Odoo Module","description":"If you are looking for an easy method to add your CSS and JavaScript files in Odoo, follow this guide.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module","og_locale":"en_US","og_type":"article","og_title":"Learn to add CSS\/Js Files in Odoo Module","og_description":"If you are looking for an easy method to add your CSS and JavaScript files in Odoo, follow this guide.","og_url":"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module","og_site_name":"Ksolves Store Blog","article_published_time":"2022-03-14T12:44:31+00:00","article_modified_time":"2022-03-25T11:11:16+00:00","og_image":[{"width":880,"height":440,"url":"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS_Js.jpg","type":"image\/jpeg"}],"author":"Parul Gautam","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Parul Gautam","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/store.ksolves.com\/blog\/odoo\/steps-to-add-css-and-javascript-files-in-odoo-module","url":"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module","name":"Learn to add CSS\/Js Files in Odoo Module","isPartOf":{"@id":"https:\/\/store.ksolves.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module#primaryimage"},"image":{"@id":"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module#primaryimage"},"thumbnailUrl":"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS_Js.jpg","datePublished":"2022-03-14T12:44:31+00:00","dateModified":"2022-03-25T11:11:16+00:00","author":{"@id":"https:\/\/store.ksolves.com\/blog\/#\/schema\/person\/24bfd358b29cc978fd6e7f809e28b7d2"},"description":"If you are looking for an easy method to add your CSS and JavaScript files in Odoo, follow this guide.","breadcrumb":{"@id":"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module#primaryimage","url":"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS_Js.jpg","contentUrl":"https:\/\/store.ksolves.com\/blog\/wp-content\/uploads\/2022\/03\/CSS_Js.jpg","width":880,"height":440,"caption":"Add CSS and JavaScript Files In Odoo Module"},{"@type":"BreadcrumbList","@id":"https:\/\/store.ksolves.com\/blog\/odoo-2\/steps-to-add-css-and-javascript-files-in-odoo-module#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/store.ksolves.com\/blog"},{"@type":"ListItem","position":2,"name":"Steps To Add CSS and JavaScript Files In Odoo Module"}]},{"@type":"WebSite","@id":"https:\/\/store.ksolves.com\/blog\/#website","url":"https:\/\/store.ksolves.com\/blog\/","name":"Ksolves Store Blog","description":"Where Great Ideas Change Your Business","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/store.ksolves.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/store.ksolves.com\/blog\/#\/schema\/person\/24bfd358b29cc978fd6e7f809e28b7d2","name":"Parul Gautam","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/store.ksolves.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9eb990d177ece8faa608213c706ff36edd7f09fbb996e90aaa4d36dcb6f41cac?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9eb990d177ece8faa608213c706ff36edd7f09fbb996e90aaa4d36dcb6f41cac?s=96&d=mm&r=g","caption":"Parul Gautam"},"description":"Parul Gautam is a Sr. Technical Writer who believes in bridging the gap between customers and Technologies. She can convert the aura of any Technology into Powerful Words. One time she can Jot Down her words and at the other, she will Tap on the Beats of Great Music. To Taste the Recipe of her Writing, hang on to the great Blogs."}]}},"_links":{"self":[{"href":"https:\/\/store.ksolves.com\/blog\/wp-json\/wp\/v2\/posts\/1805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/store.ksolves.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/store.ksolves.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/store.ksolves.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/store.ksolves.com\/blog\/wp-json\/wp\/v2\/comments?post=1805"}],"version-history":[{"count":7,"href":"https:\/\/store.ksolves.com\/blog\/wp-json\/wp\/v2\/posts\/1805\/revisions"}],"predecessor-version":[{"id":1821,"href":"https:\/\/store.ksolves.com\/blog\/wp-json\/wp\/v2\/posts\/1805\/revisions\/1821"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/store.ksolves.com\/blog\/wp-json\/wp\/v2\/media\/1806"}],"wp:attachment":[{"href":"https:\/\/store.ksolves.com\/blog\/wp-json\/wp\/v2\/media?parent=1805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/store.ksolves.com\/blog\/wp-json\/wp\/v2\/categories?post=1805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/store.ksolves.com\/blog\/wp-json\/wp\/v2\/tags?post=1805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}