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

Hi everyone!   

I'm having a field to store website link. I need to print that field in qweb and also to open a url link in new tab when click on it. 

How must i do it! Kindly help me here!

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

Try the following

static: < a href="your_link">Display Text
dynamic: < a t-attf-href="your_link">Display Text
using target="_blank" inside the anchor tag helps to open the link in new tab

Regards

Awatar
Odrzuć
Autor

Thank you

Najlepsza odpowiedź

you can use anchor tag of HTML : < a t-attf-href = " # {line.product_template_id.e_link_full}" > Text to display</a>

Awatar
Odrzuć
Autor

Thanks!

Powiązane posty Odpowiedzi Widoki Czynność
2
lip 23
6374
1
cze 23
4363
1
kwi 23
5074
1
lis 22
3784
1
paź 21
12157