コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
5161 ビュー

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
6362
1
6月 23
4358
1
4月 23
5072
1
11月 22
3779
1
10月 21
12144