Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
5 Odpowiedzi
8253 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź
Try <a t-attf-href="line.url_field">URL</a> Hope it will works.
Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź
<a t-att-href="line.field">text to display</a>
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 25
10945
2
lip 19
16201
3
gru 19
5274
1
lip 25
1939
1
maj 25
887