Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5 Odpovědi
8213 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď
Try <a t-attf-href="line.url_field">URL</a> Hope it will works.
Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

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.

Avatar
Zrušit
Nejlepší odpověď

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

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

Avatar
Zrušit
Autor Nejlepší odpověď
<a t-att-href="line.field">text to display</a>
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 25
10914
2
čvc 19
16164
3
pro 19
5249
1
čvc 25
1875
1
kvě 25
853