Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
5138 Ansichten

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
Verwerfen

Hello Nanda, Did you find a solution?

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Dez. 24
1530
1
März 23
6739
2
Apr. 22
4199
0
Okt. 21
2693
2
Mai 20
12268