Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
5 Antworten
8269 Ansichten

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
Verwerfen
Beste Antwort
Try <a t-attf-href="line.url_field">URL</a> Hope it will works.
Avatar
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
Beste Antwort

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
Verwerfen
Beste Antwort

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

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

Avatar
Verwerfen
Autor Beste Antwort
<a t-att-href="line.field">text to display</a>
Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Apr. 25
10952
2
Juli 19
16216
3
Dez. 19
5281
1
Juli 25
1958
1
Mai 25
894