Skip to Content
Menú
This question has been flagged
5077 Vistes

I have a many2many field like this

medical_report_ids = fields.Many2many('ir.attachment', string='Medical reports')

This will accept both images and pdfs.

While displaying the data, I want to show the thumbnails for images and file name for pdf just like how it is shown in the default mail app.

I tried using <field name="medical_report_ids" widget="many2many_binary"/> but this only allows downloading attachments. I want to them to be previewed. 
Avatar
Descartar

Hello Nanda, Did you find a solution?

Related Posts Respostes Vistes Activitat
0
de des. 24
1408
1
de març 23
6609
2
d’abr. 22
4068
0
d’oct. 21
2620
2
de maig 20
12176