DEV Community

Jeevachaithanyan Sivanandan
Jeevachaithanyan Sivanandan

Posted on

How to find the current page template/view ID from the dev tools?

Often in Odoo development, we need to customize the current template view. In order to do that, we need to find the template ID of the current page and then customize it. It's easy to find information about the current template using debug mode; we can use the metadata option or edit form view. However, these are not available on website portal pages. If you want to edit such pages, you'll have to dive through the portal templates and trace up to the correct template ID, which can often take some time. There's an easier way to find the template from the browser dev tools.

Image description
Let's say we need to edit the product template view page in the website portal. Just open your browser dev tools and highlight the HTML tag . You'll then see the tag data-viewID; it will have the ID of the template view. Copying this value, you can go to Settings > Technical > Views and search for this ID. You'll be able to see the template there.

Top comments (0)