İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4953 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

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.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 15
4438
1
Mar 15
4327
1
Ağu 15
9018
0
Haz 15
3257
1
Mar 15
7314