跳至内容
菜单
此问题已终结

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>


形象
丢弃
相关帖文 回复 查看 活动
4
2月 25
4221
2
1月 23
16028
0
10月 22
1889
1
6月 25
1899
0
10月 22
2196