{"id":45039,"date":"2016-04-06T14:37:50","date_gmt":"2016-04-06T14:37:50","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=45039"},"modified":"2017-03-21T10:51:26","modified_gmt":"2017-03-21T10:51:26","slug":"odoo-customize-website-view","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/","title":{"rendered":"Customize view of  website in odoo."},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Recently i was working on a project in which i had to create my own page in Odoo website. I created the page and made the grid view of the entities in the page and every thing was working as expected. When i tried to customize (change size or promote to top,bottom,up &amp; down) \u00a0the grid of the entities in my page it was not working \u00a0as Odoo does (eg.Shop page). I searched in the core and i found a solution for it, i am writing the steps which need to be followed while creating the customizable grid view.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-45111\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/before-1.png\" alt=\"before\" width=\"743\" height=\"279\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/before-1.png 1207w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/before-1-250x94.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/before-1-300x113.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/before-1-768x288.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/before-1-1200x450.png 1200w\" sizes=\"(max-width: 743px) 100vw, 743px\" loading=\"lazy\" \/><\/p>\n<ul>\n<li><strong>Add the fields in model(eg. \u00a0my.model)of the page you want to customize.<\/strong>\n<pre class=\"brush:py\">website_size_x = fields.Integer('Size X', default=1)\r\nwebsite_size_y = fields.Integer('Size Y',default=1)\r\nwebsite_sequence = fields.Integer('Sequence' , default='_default_website_sequence')<\/pre>\n<p>Add the default size you want to show when the page is first time loaded. Also add the default \u00a0 \u00a0 \u00a0 <em>website_sequence .<\/em> Default<em>\u00a0<em>website_sequence can be simply added by simply creating a query for selecting the minimum\u00a0<em>website_sequence form database\u00a0by writing the following the function.<\/em><\/em><\/em><\/p>\n<pre class=\"brush:py\">@api.model \r\ndef _default_website_sequence(self):\r\n     cr = self._cr cr.execute('SELECT MIN(website_sequence)-1 FROM my_model')\r\n     next_sequence = cr.fetchone()[0] or 10 \r\n     return next_sequence<\/pre>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"text-align: left\"><strong><strong>How to use &#8220;<em>website_size_x&#8221; and &#8220;<em>website_size_y&#8221; .<br \/>\n<\/em><\/em><\/strong><\/strong>Simply use\u00a0the\u00a0<strong><em>website_size_x <\/em><\/strong><em>and<\/em><strong><em>\u00a0<strong><em><em>website_size_y<\/em><\/em><\/strong><\/em><\/strong><em><em><em>\u00a0<\/em><\/em><\/em><em><em><em>in col-span and row-span of the view you are creating, \u00a0for example in my case i created a table view of the\u00a0entities and added the code in templates.xml as.<br \/>\n<\/em><\/em><\/em><\/p>\n<pre class=\"brush:xml\">&lt;td   t-att-colspan=\"object.website_size_x\" t-att-rowspan=\"object.website_size_y\" t-attf-class=\"oe_grid oe_height\"&gt;<\/pre>\n<p><strong><em>Important Note:-&gt;<\/em>\u00a0<\/strong>Class &#8220;<strong>oe_grid\u00a0oe_height<\/strong>&#8221; is used to create the grid view of the entities in the page.<\/li>\n<li><strong>How to use &#8220;<em>website_sequence&#8221;<\/em><\/strong> .<br \/>\nIn order to add the sequence of your entities you need to order the records of your model\u00a0by website_sequence by simply adding this.<\/p>\n<ul>\n<li><em>_order = &#8216;website_sequence desc&#8217;<\/em><\/li>\n<li><em>Create functions for writing the values in the website_sequence.<\/em>\n<ul>\n<li>Create functions for pushing the entities to top, bottom , up &amp; down in the model you want to view in website and write the values of \u00a0website_sequence in those. Here is the example.\n<pre class=\"brush:py\">@api.multi\r\ndef set_sequence_top(self):\r\n    self._cr.execute('SELECT MAX(website_sequence) FROM my_model')\r\n    max_sequence = self._cr.fetchone()[0] or 0\r\n    return self.write({'website_sequence': max_sequence + 1})\r\n\r\n@api.multi\r\n    def set_sequence_bottom(self):\r\n    self._cr.execute('SELECT MIN(website_sequence) FROM my_model')\r\n    min_sequence = self._cr.fetchone()[0] or 0\r\n    return self.write({'website_sequence': min_sequence -1})\r\n@api.multi\r\n def set_sequence_up(self):\r\n    self._cr.execute(\"\"\" SELECT id, website_sequence FROM my_model\r\n    WHERE website_sequence &gt; %s ORDER BY website_sequence ASC LIMIT 1\"\"\" % (self.website_sequence))\r\n    prev = self._cr.fetchone()\r\n    if prev:\r\n       prev_obj = self.browse(prev[0])\r\n       prev_obj.write({'website_sequence': self.website_sequence})\r\n       return self.write({'website_sequence': prev[1]})\r\n    else:\r\n       return self.set_sequence_top()\r\n\r\n\r\n@api.multi\r\n def set_sequence_down(self):\r\n     self._cr.execute(\"\"\" SELECT id, website_sequence FROM my_model\r\n     WHERE website_sequence &lt; %s ORDER BY website_sequence DESC LIMIT 1\"\"\" % (self.website_sequence, ))\r\n          next = self._cr.fetchone()\r\n     if next:\r\n          next_obj = self.browse(next[0])\r\n          next_obj.write({'website_sequence': self.website_sequence})\r\n          return self.write({'website_sequence': next[1]})\r\n     else:\r\n          return self.set_sequence_bottom()<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"text-align: left\"><strong>Override the website_sale_editor.js file.<\/strong>\n<ul>\n<li style=\"text-align: left\">Override the\u00a0<strong>start<\/strong>, <strong>bind_resize<\/strong>\u00a0and <strong>go_to<\/strong> templates in the website_sale_editor.js\n<pre class=\"brush:js\">start: function () {\r\n    this.entity_id = parseInt(\"id of your entity you want to customize\");\r\n     this._super();\r\n},\r\n<\/pre>\n<pre class=\"brush:js\">bind_resize: function () { \r\nthis.$el.on('click', 'ul[name=\"size\"] td', function (event) \r\n{ \r\nvar $td = $(event.currentTarget);\r\nvar x = $td.index()+1; \r\nvar y = $td.parent().index()+1; \r\najax.jsonRpc('\/my_controller\/change_size', 'call', {'id': this.entity_id, 'x': x, 'y': y}) .then(self.reload); \/\/Call the controllerand pass the row_span and col_span values.\r\n });\r\n },<\/pre>\n<pre class=\"brush:js\">go_to: function (type, value) {\r\nif(type !== \"click\") return;\r\n     ajax.jsonRpc('\/my_controller\/change_sequence', 'call', {'id': this.entity_id,  'sequence':  value}.then(this.reload); \/\/ Call the controller and pass the sequence.\r\n},<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>What to do in controller.<\/strong>\n<ul>\n<li><em><em><em><em>Add two routes in the controller for re-sizing and changing the sequence of your entities in website .Here is the example.<br \/>\n<\/em><\/em><\/em><\/em><\/p>\n<pre class=\"brush:py\">@http.route(['\/my_controller\/change_size'], type='json', auth=\"public\")\r\ndef deals_change_size(self, id, x, y):\r\n    object = request.env['my.model'].browse(id)\r\n    size =object.write({'website_size_x': x, 'website_size_y': y})\r\n    return size\r\n@http.route(['\/my_controller\/change_sequence'], type='json', auth=\"public\")\r\ndef change_sequence(self, id, sequence):\r\n    context = request.context\r\n    object = request.env['my.model'].browse(id)\r\n    if sequence == \"top\":\r\n       object.with_context(context).set_sequence_top()\r\n    elif sequence == \"bottom\":\r\n       object.with_context(context).set_sequence_bottom()\r\n    elif sequence == \"up\":\r\n       object.with_context(context).set_sequence_up()\r\n    elif sequence == \"down\":\r\n       object.with_context(context).set_sequence_down()<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-45112\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/after-1.png\" alt=\"after\" width=\"100%\" height=\"30%\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/after-1.png 1238w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/after-1-250x83.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/after-1-300x100.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/after-1-768x256.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/after-1-1200x399.png 1200w\" sizes=\"(max-width: 1238px) 100vw, 1238px\" loading=\"lazy\" \/><\/p>\n<p>That is it.!!!<br \/>\nIf you enjoyed this post, I\u2019d be very grateful if you\u2019d write your opinions, comments and suggestions to keep the page updated and interesting.<br \/>\nThank you!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Recently i was working on a project in which i had to create my own page in Odoo website. I created the page and made the grid view of the entities in the page and every thing was working as expected. When i tried to customize (change size or promote to top,bottom,up &amp; down) <a href=\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":88,"featured_media":45127,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2030,2007],"tags":[2938,2940,588,1267,2939,2941,2945,2943,2944],"class_list":["post-45039","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-e-commerce","category-odoo","tag-customize","tag-edit","tag-grid","tag-odoo","tag-view","tag-website","tag-website_sequence","tag-website_size_x","tag-website_size_y"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Odoo customize website view<\/title>\n<meta name=\"description\" content=\"When i tried to customize the grid of the entities in my page it was not working as odoo does. I searched in the core and i found a solution for it.\" \/>\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\/odoo-customize-website-view\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Odoo customize website view\" \/>\n<meta property=\"og:description\" content=\"When i tried to customize the grid of the entities in my page it was not working as odoo does. I searched in the core and i found a solution for it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/\" \/>\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=\"2016-04-06T14:37:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-03-21T10:51:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Customize-The-Grid-View.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jahangir Naik\" \/>\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=\"Jahangir Naik\" \/>\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\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/\"},\"author\":{\"name\":\"Jahangir Naik\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/d3efd6f1d02c2713752e7cba0b626ca6\"},\"headline\":\"Customize view of website in odoo.\",\"datePublished\":\"2016-04-06T14:37:50+00:00\",\"dateModified\":\"2017-03-21T10:51:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/\"},\"wordCount\":402,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Customize-The-Grid-View.png\",\"keywords\":[\"customize\",\"edit\",\"grid\",\"odoo\",\"view\",\"website\",\"website_sequence\",\"website_size_x\",\"website_size_y\"],\"articleSection\":[\"E commerce\",\"Odoo\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/\",\"url\":\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/\",\"name\":\"Odoo customize website view\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Customize-The-Grid-View.png\",\"datePublished\":\"2016-04-06T14:37:50+00:00\",\"dateModified\":\"2017-03-21T10:51:26+00:00\",\"description\":\"When i tried to customize the grid of the entities in my page it was not working as odoo does. I searched in the core and i found a solution for it.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Customize-The-Grid-View.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Customize-The-Grid-View.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Customize view of website in odoo.\"}]},{\"@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\/d3efd6f1d02c2713752e7cba0b626ca6\",\"name\":\"Jahangir Naik\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/20021fdcdb324166dd5aef0f183ffb391facf8853dd58f9fcabc0950f4118c01?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\/20021fdcdb324166dd5aef0f183ffb391facf8853dd58f9fcabc0950f4118c01?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Jahangir Naik\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/jahangir260\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Odoo customize website view","description":"When i tried to customize the grid of the entities in my page it was not working as odoo does. I searched in the core and i found a solution for it.","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\/odoo-customize-website-view\/","og_locale":"en_US","og_type":"article","og_title":"Odoo customize website view","og_description":"When i tried to customize the grid of the entities in my page it was not working as odoo does. I searched in the core and i found a solution for it.","og_url":"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-04-06T14:37:50+00:00","article_modified_time":"2017-03-21T10:51:26+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Customize-The-Grid-View.png","type":"image\/png"}],"author":"Jahangir Naik","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Jahangir Naik","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/"},"author":{"name":"Jahangir Naik","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/d3efd6f1d02c2713752e7cba0b626ca6"},"headline":"Customize view of website in odoo.","datePublished":"2016-04-06T14:37:50+00:00","dateModified":"2017-03-21T10:51:26+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/"},"wordCount":402,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Customize-The-Grid-View.png","keywords":["customize","edit","grid","odoo","view","website","website_sequence","website_size_x","website_size_y"],"articleSection":["E commerce","Odoo"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/","url":"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/","name":"Odoo customize website view","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Customize-The-Grid-View.png","datePublished":"2016-04-06T14:37:50+00:00","dateModified":"2017-03-21T10:51:26+00:00","description":"When i tried to customize the grid of the entities in my page it was not working as odoo does. I searched in the core and i found a solution for it.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/odoo-customize-website-view\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Customize-The-Grid-View.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/Customize-The-Grid-View.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/odoo-customize-website-view\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Customize view of website in odoo."}]},{"@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\/d3efd6f1d02c2713752e7cba0b626ca6","name":"Jahangir Naik","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/20021fdcdb324166dd5aef0f183ffb391facf8853dd58f9fcabc0950f4118c01?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\/20021fdcdb324166dd5aef0f183ffb391facf8853dd58f9fcabc0950f4118c01?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Jahangir Naik"},"url":"https:\/\/webkul.com\/blog\/author\/jahangir260\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/45039","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\/88"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=45039"}],"version-history":[{"count":19,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/45039\/revisions"}],"predecessor-version":[{"id":78106,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/45039\/revisions\/78106"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/45127"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=45039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=45039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=45039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}