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

Hi Dear,

I add an new char field to product.product as a "product_url" widget="url"

I need to add this field to qweb report for sale order where the cusomer could use this soft copy from sale order to visit product data sheet for more info.

I used the the following attribute:

<a href="line.product_id.product_url">data sheet link</a>, after print sale order pdf and click on data sheet link the attribute act as follow

http://localhost:8069/line.product_id.product_url not went to product data sheet link

아바타
취소
베스트 답변
Try <a t-attf-href="line.url_field">URL</a> Hope it will works.
아바타
취소
베스트 답변

<a t-attf-href =" #{line.product_id.product_url }" >data sheet link </a>

아바타
취소
베스트 답변

I'm facing a same issue and my hyperlinks are not working on the qweb report.

Let me know if anyone know what might be the issue.

아바타
취소
베스트 답변

Replacing "href" to "t-attr-href" in you code. like:

<a t-attr-href="line.product_id.product_url">data sheet link</a>

아바타
취소
작성자 베스트 답변
<a t-att-href="line.field">text to display</a>
아바타
취소
관련 게시물 답글 화면 활동
1
4월 25
10949
2
7월 19
16209
3
12월 19
5278
1
7월 25
1953
1
5월 25
894