Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5308 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 15
4771
1
mar 15
4659
1
sie 15
9335
0
cze 15
3527
1
mar 15
7661