Skip to Content
मेन्यू
This question has been flagged
1 Reply
5156 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
1
मार्च 15
4598
1
मार्च 15
4487
1
अग॰ 15
9178
0
जून 15
3402
1
मार्च 15
7483