{"id":23,"date":"2023-02-19T15:57:00","date_gmt":"2023-02-19T15:57:00","guid":{"rendered":""},"modified":"2024-01-28T09:05:28","modified_gmt":"2024-01-28T09:05:28","slug":"how-to-create-custom-module-in-odoo16","status":"publish","type":"post","link":"https:\/\/pythonpower.in\/index.php\/2023\/02\/19\/how-to-create-custom-module-in-odoo16\/","title":{"rendered":"How To Create Custom Module In Odoo16"},"content":{"rendered":"<p>&nbsp;<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/pythonpower.in\/wp-content\/uploads\/2023\/02\/download.jpeg\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"162\" data-original-width=\"311\" height=\"333\" src=\"http:\/\/pythonpower.in\/wp-content\/uploads\/2023\/02\/download-300x156.jpeg\" width=\"640\" \/><\/a><\/div>\n<p><\/p>\n<p><\/p>\n<p><span style=\"font-size: large;\"><b>How To Create 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 create a custom module in Odoo 16, you can 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;\"><span style=\"font-size: medium;\">Create a new directory for your<b>&nbsp;Odoo16<\/b>&nbsp; by the name of&nbsp;<b>Custom_addons<\/b>. The inside of&nbsp;&nbsp;<b>Custom_addons<\/b>&nbsp; we can create a Custom Module and and the directory for your custom module should be named according to your module&#8217;s name.<\/span><\/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;\"><span style=\"font-size: medium;\">Within your&nbsp; Hospital Management module , create a manifest file named __manifest__.py with the following content<\/span><\/li>\n<\/ol>\n<div><span style=\"font-family: Helvetica Neue; font-size: medium;\"><br \/><\/span><\/div>\n<div>\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>{<\/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><span>&nbsp; &nbsp; <\/span>&#8216;name&#8217;: &#8216;Hospital Management&#8217;,<\/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><span>&nbsp; &nbsp; <\/span>&#8216;version&#8217;: &#8216;1.2&#8217;,<\/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><span>&nbsp; &nbsp; <\/span>&#8216;category&#8217;: &#8216;Hospital Management System&#8217;,<\/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><span>&nbsp; &nbsp; <\/span>&#8216;author&#8217;: &#8216;pythonpowers&#8217;,<\/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; min-height: 15px;\"><span><span style=\"font-size: medium;\"><b>&nbsp; &nbsp;<\/b><\/span><\/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><span>&nbsp; &nbsp; <\/span>&#8216;sequence&#8217;: -100,<\/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><span>&nbsp; &nbsp; <\/span>&#8216;summary&#8217;: &#8216;HMS&#8217;,<\/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><span>&nbsp; &nbsp; <\/span>&#8216;description&#8217;: &#8220;&#8221;&#8221;<\/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>This module contains all the common features of Hospital Managent System.<\/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><span>&nbsp; &nbsp; <\/span>&#8220;&#8221;&#8221;,<\/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><span>&nbsp; &nbsp; <\/span>&#8216;depends&#8217;: [],<\/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><span>&nbsp; &nbsp; <\/span>&#8216;data&#8217;: [],<\/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; min-height: 15px;\"><span><span style=\"font-size: medium;\"><b>&nbsp;<\/b><\/span><\/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><span>&nbsp; &nbsp; <\/span>&#8216;demo&#8217;: [],<\/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><span>&nbsp; &nbsp; <\/span>&#8216;application&#8217;:True,<\/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; min-height: 15px;\"><span><span style=\"font-size: medium;\"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<\/b><\/span><\/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><span>&nbsp; &nbsp; <\/span>&#8216;installable&#8217;: True,<\/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><span>&nbsp; &nbsp; <\/span>&#8216;assets&#8217;: {<\/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; min-height: 15px;\"><span><span style=\"font-size: medium;\"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<\/b><\/span><\/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><span>&nbsp; &nbsp; <\/span>},<\/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<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;\">This file provides basic metadata for your module, including its name, version, summary, description, and dependencies<span style=\"font-size: 13px;\">.<\/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: 13px;\"><br \/><\/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;\">\n<div style=\"clear: both; text-align: center;\"><iframe loading=\"lazy\" allowfullscreen=\"\" height=\"385\" src=\"https:\/\/www.youtube.com\/embed\/R1c1F7uJXJU\" width=\"516\" youtube-src-><\/iframe><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<p><span style=\"font-size: 13px;\"><br \/><\/span><\/p>\n<\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; How To Create Custom Module In Odoo16 To create a custom module in Odoo&hellip;<\/p>\n","protected":false},"author":2,"featured_media":89,"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\/23"}],"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=23"}],"version-history":[{"count":1,"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":90,"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/posts\/23\/revisions\/90"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/media\/89"}],"wp:attachment":[{"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pythonpower.in\/index.php\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}