Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5238 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
mars 15
4650
1
mars 15
4546
1
août 15
9219
0
juin 15
3450
1
mars 15
7542