Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5042 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mar. 15
4494
1
mar. 15
4411
1
aug. 15
9096
0
iun. 15
3336
1
mar. 15
7398