跳至内容
菜单
此问题已终结
1 回复
5019 查看

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

形象
丢弃
最佳答案

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.

形象
丢弃
相关帖文 回复 查看 活动
1
3月 15
4472
1
3月 15
4392
1
8月 15
9072
0
6月 15
3321
1
3月 15
7379