Odoo Help


How do I edit the product description HTML?

on 8/10/14, 12:44 AM 5,669 views

I'd like to add custom blocks to my product descriptions. That is the part in the product page that starts with: 

<div itemprop="description" t-field="product.website_description" class="oe_structure mt16" id="product_full_description"/>

I can't seem to find a way to open the HTML editor to this section.


Luke Branch

--Luke Branch--
| 6 7 8
Mui Wo, Lantau, Hong Kong
--Luke Branch--


Luke Branch
On 8/10/14, 11:43 PM

Hi Shimon,

If you're using a custom theme template I believe you can just open your /views/layout.xml file and override the template ID: website_sale.product with your own modified version. If you're looking to use the built-in HTML editor you should be able to just navigate to the product view page (ie. click on a product page on the frontend) and then open the built-in HTML editor and choose the 'Product' from the dropdown menu. You should see Template ID: website_sale.product when you have opened this page in the HTML editor.

If you're looking to add your custom blocks inside the following div:

<div itemprop="description" t-field="product.website_description" class="oe_structure mt16" id="product_full_description"/>

You could do so by adding the following code to your layout.xml file (just before the closing </openerp> and </data> tags):

<template id="theme_custom_product_description_custom_blocks" name="Product Description Custom Blocks" inherit_id="website_sale.product">
<xpath expr="//div[@id='product_full_description']" position="inside">
        <!-- Insert your custom blocks here -->

What this will do is inherit the website_sale.product template and then insert your custom blocks inside the <div> with the id "product_full_description".

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 8/10/14, 12:44 AM
Seen: 5669 times
Last updated: 3/16/15, 8:10 AM