Skip to Content
Menú
This question has been flagged
1 Respondre
4909 Vistes

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
1
de març 15
4402
1
de març 15
4288
1
d’ag. 15
8987
0
de juny 15
3241
1
de març 15
7275