I'd like to display the internal reference of my products and variants on the product page on the e commerce in odoo 10
can anyone explain me how to do it?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I'd like to display the internal reference of my products and variants on the product page on the e commerce in odoo 10
can anyone explain me how to do it?
<td t-if="line.product_id.product_tmpl_id"> <div> <strong t-field="line.product_id.with_context(display_default_code=True).display_name" /> </div> </td> |
It Will show like this [E232]Mouse |
Hi Olivier,
To add the internal reference to the product page , you can extend the template with the id="product" using the t-extend , then you can add the code to add the internal reference like this,
Thank You
<div>
<t t-if="product.default_code">
<p t-field="product.default_code" class="text-muted" />
</t>
</div>
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
4
Jul 22
|
2673 | ||
|
2
Jan 23
|
14483 | ||
|
0
Oct 22
|
928 | ||
|
1
Oct 23
|
984 | ||
|
0
Oct 22
|
1300 |