{"id":399022,"date":"2023-09-15T12:24:58","date_gmt":"2023-09-15T12:24:58","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=399022"},"modified":"2023-09-15T12:29:59","modified_gmt":"2023-09-15T12:29:59","slug":"how-to-create-doctypes-in-erpnext","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/","title":{"rendered":"How to create Doctypes in ERPNext"},"content":{"rendered":"\n<p>In this blog, we will learn how to create new doctypes in ERPNext.<\/p>\n\n\n\n<p>DocType is similar to a Model in other frameworks (like odoo).<\/p>\n\n\n\n<p>When we create doctypes in ERPNext, then database table with the same name gets created (with tab prefix)<\/p>\n\n\n\n<p>e.g &#8211; If the doctype name is Library -&gt; the db table name will be tabLibrary<\/p>\n\n\n\n<p><strong>The directory structure for doctypes<\/strong>:-<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">library_management\/library_management\/doctype\/__init__.py\n\n&nbsp;&nbsp;&nbsp;&nbsp;library_management\/library_management\/doctype\/library\/__init__.py\n\n&nbsp;&nbsp;&nbsp;&nbsp;library_management\/library_management\/doctype\/library\/library.js\n\n&nbsp;&nbsp;&nbsp;&nbsp;library_management\/library_management\/doctype\/library\/library.json\n\n&nbsp;&nbsp;&nbsp;&nbsp;library_management\/library_management\/doctype\/library\/library.py\n\n&nbsp;&nbsp;&nbsp;&nbsp;library_management\/library_management\/doctype\/library\/test_library.py<\/pre>\n\n\n\n<p>library.json:- JSON file that defines the doctype attributes and fields(table columns)<\/p>\n\n\n\n<p>library.js:- Client-side controller for the Form view<\/p>\n\n\n\n<p>library.py:- Python controller (server side) for library doctype<\/p>\n\n\n\n<p>test_library.py:- Python Unit Test boilerplate for writing tests<\/p>\n\n\n\n<p><strong>library.json<\/strong><\/p>\n\n\n\n<p>** (This file creates the doctype) **<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">{\n&nbsp;&nbsp;&quot;autoname&quot;: &quot;format: PS-{####}&quot;,\n&nbsp;&nbsp;&quot;doctype&quot;: &quot;DocType&quot;,\n&nbsp;&nbsp;&quot;fields&quot;: &#091;\n&nbsp;&nbsp;&nbsp;&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;fieldname&quot;: &quot;section1&quot;,\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;fieldtype&quot;: &quot;Section Break&quot;,\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;label&quot;: &quot;Section 1&quot;\n&nbsp;&nbsp;},\n&nbsp;&nbsp;{\n&nbsp;&nbsp;&nbsp;&quot;fieldname&quot;: &quot;field_1&quot;,\n&nbsp;&nbsp;&nbsp;&quot;fieldtype&quot;: &quot;Data&quot;,\n&nbsp;&nbsp;&nbsp;&quot;in_list_view&quot;: 1,\n&nbsp;&nbsp;&nbsp;&quot;label&quot;: &quot;Field 1 Label&quot;,\n&nbsp;&nbsp;&nbsp;&quot;reqd&quot;: 1\n&nbsp;&nbsp;},\n&nbsp;&nbsp;{\n&nbsp;&nbsp;&nbsp;&quot;fieldname&quot;: &quot;column_break1&quot;,\n&nbsp;&nbsp;&nbsp;&quot;fieldtype&quot;: &quot;Column Break&quot;,\n&nbsp;&nbsp;&nbsp;&quot;label&quot;: &quot;&quot;\n&nbsp;&nbsp;},\n&nbsp;&nbsp;{\n&nbsp;&nbsp;&nbsp;&quot;fieldname&quot;: &quot;field_2&quot;,\n&nbsp;&nbsp;&nbsp;&quot;fieldtype&quot;: &quot;Select&quot;,\n&nbsp;&nbsp;&nbsp;&quot;in_list_view&quot;: 1,\n&nbsp;&nbsp;&nbsp;&quot;label&quot;: &quot;Field 2 Label&quot;,\n&nbsp;&nbsp;&nbsp;&quot;options&quot;: &quot;option1\\option2&quot;,\n&nbsp;&nbsp;&nbsp;&quot;reqd&quot;: 1\n&nbsp;&nbsp;}\n&nbsp;],\n&nbsp;&quot;module&quot;: &quot;library_management&quot;,\n&nbsp;&quot;name&quot;: &quot;Doctype Name&quot;,\n&nbsp;&quot;owner&quot;: &quot;Administrator&quot;,\n&nbsp;&quot;permissions&quot;: &#091;\n&nbsp;&nbsp;{\n&nbsp;&nbsp;&nbsp;&quot;amend&quot;: 0,\n&nbsp;&nbsp;&nbsp;&quot;cancel&quot;: 0,\n&nbsp;&nbsp;&nbsp;&quot;create&quot;: 1,\n&nbsp;&nbsp;&nbsp;&quot;delete&quot;: 1,\n&nbsp;&nbsp;&nbsp;&quot;email&quot;: 1,\n&nbsp;&nbsp;&nbsp;&quot;export&quot;: 1,\n&nbsp;&nbsp;&nbsp;&quot;if_owner&quot;: 0,\n&nbsp;&nbsp;&nbsp;&quot;import&quot;: 0,\n&nbsp;&nbsp;&nbsp;&quot;permlevel&quot;: 0,\n&nbsp;&nbsp;&nbsp;&quot;print&quot;: 1,\n&nbsp;&nbsp;&nbsp;&quot;read&quot;: 1,\n&nbsp;&nbsp;&nbsp;&quot;report&quot;: 1,\n&nbsp;&nbsp;&nbsp;&quot;role&quot;: &quot;System Manager&quot;,\n&nbsp;&nbsp;&nbsp;&quot;set_user_permissions&quot;: 0,\n&nbsp;&nbsp;&nbsp;&quot;share&quot;: 1,\n&nbsp;&nbsp;&nbsp;&quot;submit&quot;: 0,\n&nbsp;&nbsp;&nbsp;&quot;write&quot;: 1\n&nbsp;&nbsp;},\n  {\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;amend&quot;: 0,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;cancel&quot;: 0,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;create&quot;: 1,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;delete&quot;: 0,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;email&quot;: 0,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;export&quot;: 0,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;if_owner&quot;: 0,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;import&quot;: 0,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;permlevel&quot;: 0,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;print&quot;: 0,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;read&quot;: 1,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;report&quot;: 0,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;role&quot;: &quot;All&quot;,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;set_user_permissions&quot;: 0,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;share&quot;: 0,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;submit&quot;: 0,\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;write&quot;: 1\n&nbsp;&nbsp;&nbsp;}\n&nbsp;],\n&nbsp;&quot;quick_entry&quot;: 1,\n&nbsp;&quot;show_name_in_global_search&quot;: 1,\n&nbsp;&quot;sort_field&quot;: &quot;field1&quot;,\n&nbsp;&quot;sort_order&quot;: &quot;DESC&quot;,\n&nbsp;&quot;title_field&quot;: &quot;field1&quot;,\n&nbsp;&quot;track_changes&quot;: 1,\n&nbsp;&quot;track_seen&quot;: 1,\n&nbsp;&quot;track_views&quot;: 1\n}<\/pre>\n\n\n\n<p><strong>library.py<\/strong><\/p>\n\n\n\n<p>** (This file contains business logic for particular doctype) **<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">import frappe\n\nfrom frappe.model.document import Document\n\nclass Library(Document):\n\n&nbsp;&nbsp;&nbsp;&nbsp;def before_save(self):\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# code to execute before saving a library record #<\/pre>\n\n\n\n<p><strong>library.js<\/strong><\/p>\n\n\n\n<p>** (This file contains the js code for the form view) **<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">frappe.ui.form.on(&#039;Library&#039;, {\n\n&nbsp;&nbsp;&nbsp;&nbsp;refresh: function(frm) {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/ refresh method will run every time a form is refreshed\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/ frm if the form object\n\n&nbsp;&nbsp;&nbsp;&nbsp;}\n\n});<\/pre>\n\n\n\n<p>Read how to create a new app in ERPNext- <a href=\"https:\/\/webkul.com\/blog\/app-creation-and-app-installation-process-in-erpnext\/\" target=\"_blank\" rel=\"noreferrer noopener\">App Creation and App installation process in ERPNext<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Single doctypes<\/strong> in ERPNext<\/h2>\n\n\n\n<p>When a DocType has Is Single enabled, it becomes a Single DocType.<\/p>\n\n\n\n<p>It does not create a new database table. All single values stored in the tabSingles table. You can use it for storing global settings.<\/p>\n\n\n\n<p>We will use `frappe.db.get_single_value(doctype_name, field_name)` method to get the value of a field from the single doctype.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>NEED HELP?<\/strong><\/h2>\n\n\n\n<p>Hope you find the guide helpful! Please feel free to share your feedback in the comments below.<\/p>\n\n\n\n<p>If you still have any issues\/queries regarding the same, please raise a ticket at<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\" target=\"_blank\" rel=\"noreferrer noopener\"> https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/<\/a>.<\/p>\n\n\n\n<p>Also, please explore our <a href=\"https:\/\/webkul.com\/odoo-development\/\" target=\"_blank\" rel=\"noreferrer noopener\">Odoo development services<\/a> &amp; an extensive range of quality <a href=\"https:\/\/store.webkul.com\/Odoo.html\" target=\"_blank\" rel=\"noreferrer noopener\">Odoo Apps<\/a><em>.<\/em><\/p>\n\n\n\n<p>For any doubt, contact us at <a href=\"mailto:support@webkul.com\" target=\"_blank\" rel=\"noreferrer noopener\">support@webkul.com<\/a>.<\/p>\n\n\n\n<p>Thanks for paying attention!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we will learn how to create new doctypes in ERPNext. DocType is similar to a Model in other frameworks (like odoo). When we create doctypes in ERPNext, then database table with the same name gets created (with tab prefix) e.g &#8211; If the doctype name is Library -&gt; the db table name <a href=\"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":537,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[14734,14730,14732],"class_list":["post-399022","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-doctypes","tag-erpnext","tag-frappe"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create Doctypes in ERPNext - Webkul Blog<\/title>\n<meta name=\"description\" content=\"In this blog, we will learn how to create new doctypes in ERPNext.DocType is similar to a Model in other frameworks (like odoo).\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create Doctypes in ERPNext - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"In this blog, we will learn how to create new doctypes in ERPNext.DocType is similar to a Model in other frameworks (like odoo).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-15T12:24:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-15T12:29:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sachin Chaudhary\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sachin Chaudhary\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/\"},\"author\":{\"name\":\"Sachin Chaudhary\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/4b726ebe4732781356b6fb075467aea2\"},\"headline\":\"How to create Doctypes in ERPNext\",\"datePublished\":\"2023-09-15T12:24:58+00:00\",\"dateModified\":\"2023-09-15T12:29:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/\"},\"wordCount\":295,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"keywords\":[\"Doctypes\",\"ERPNext\",\"Frappe\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/\",\"name\":\"How to create Doctypes in ERPNext - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2023-09-15T12:24:58+00:00\",\"dateModified\":\"2023-09-15T12:29:59+00:00\",\"description\":\"In this blog, we will learn how to create new doctypes in ERPNext.DocType is similar to a Model in other frameworks (like odoo).\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create Doctypes in ERPNext\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/4b726ebe4732781356b6fb075467aea2\",\"name\":\"Sachin Chaudhary\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/09b025f95758f10b8464ed643dc37ddbbff3e35c25d92e8712ae1aebce5cc885?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/09b025f95758f10b8464ed643dc37ddbbff3e35c25d92e8712ae1aebce5cc885?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Sachin Chaudhary\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/sachin-odoo179\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create Doctypes in ERPNext - Webkul Blog","description":"In this blog, we will learn how to create new doctypes in ERPNext.DocType is similar to a Model in other frameworks (like odoo).","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:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/","og_locale":"en_US","og_type":"article","og_title":"How to create Doctypes in ERPNext - Webkul Blog","og_description":"In this blog, we will learn how to create new doctypes in ERPNext.DocType is similar to a Model in other frameworks (like odoo).","og_url":"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-09-15T12:24:58+00:00","article_modified_time":"2023-09-15T12:29:59+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Sachin Chaudhary","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Sachin Chaudhary","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/"},"author":{"name":"Sachin Chaudhary","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/4b726ebe4732781356b6fb075467aea2"},"headline":"How to create Doctypes in ERPNext","datePublished":"2023-09-15T12:24:58+00:00","dateModified":"2023-09-15T12:29:59+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/"},"wordCount":295,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"keywords":["Doctypes","ERPNext","Frappe"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/","url":"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/","name":"How to create Doctypes in ERPNext - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2023-09-15T12:24:58+00:00","dateModified":"2023-09-15T12:29:59+00:00","description":"In this blog, we will learn how to create new doctypes in ERPNext.DocType is similar to a Model in other frameworks (like odoo).","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-create-doctypes-in-erpnext\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create Doctypes in ERPNext"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/4b726ebe4732781356b6fb075467aea2","name":"Sachin Chaudhary","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/09b025f95758f10b8464ed643dc37ddbbff3e35c25d92e8712ae1aebce5cc885?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09b025f95758f10b8464ed643dc37ddbbff3e35c25d92e8712ae1aebce5cc885?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Sachin Chaudhary"},"url":"https:\/\/webkul.com\/blog\/author\/sachin-odoo179\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/399022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/537"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=399022"}],"version-history":[{"count":16,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/399022\/revisions"}],"predecessor-version":[{"id":400538,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/399022\/revisions\/400538"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=399022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=399022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=399022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}