콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
4229
2
1월 23
16033
0
10월 22
1893
1
6월 25
1905
0
10월 22
2214