跳至内容
菜单
此问题已终结
2 回复
5194 查看

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!

形象
丢弃
最佳答案

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

形象
丢弃
编写者

Thank you

最佳答案

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

形象
丢弃
编写者

Thanks!

相关帖文 回复 查看 活动
2
7月 23
6401
1
6月 23
4380
1
4月 23
5086
1
11月 22
3802
1
10月 21
12166