Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
5 Vastaukset
8262 Näkymät

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
Hylkää
Paras vastaus
Try <a t-attf-href="line.url_field">URL</a> Hope it will works.
Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

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

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

Avatar
Hylkää
Tekijä Paras vastaus
<a t-att-href="line.field">text to display</a>
Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
huhtik. 25
10949
2
heinäk. 19
16211
3
jouluk. 19
5279
1
heinäk. 25
1955
1
toukok. 25
894