Skip to Content
Menu
This question has been flagged
5346 Rodiniai

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. 
Portretas
Atmesti

Hello Nanda, Did you find a solution?

Related Posts Replies Rodiniai Veikla
0
gruod. 24
1907
1
kov. 23
7201
2
bal. 22
4690
0
spal. 21
2996
2
geg. 20
12637