Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
5088 Vizualizări

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. 
Imagine profil
Abandonează

Hello Nanda, Did you find a solution?

Related Posts Răspunsuri Vizualizări Activitate
0
dec. 24
1447
1
mar. 23
6643
2
apr. 22
4095
0
oct. 21
2637
2
mai 20
12208