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

I want to add a custom html attribute (say - download ) to a field in the view

I tried these

<field name="attachment" filename="answer_id" download="answer_id" />

<field name="attachment" filename="answer_id" t-att-download="answer_id" />

but fails. How can achieve this. Thanks in advance

アバター
破棄
最善の回答

Hi,

You can not directly add html attribute in field view.

you need to create widget and then it used in field view.

Thank you.

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 15
4498
1
3月 15
4428
1
8月 15
9102
0
6月 15
3347
1
3月 15
7404