Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5067 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 15
4496
1
bře 15
4427
1
srp 15
9101
0
čvn 15
3347
1
bře 15
7403