Se rendre au contenu
Menu
Cette question a été signalée
5102 Vues

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
Ignorer

Hello Nanda, Did you find a solution?

Publications associées Réponses Vues Activité
0
déc. 24
1484
1
mars 23
6678
2
avr. 22
4126
0
oct. 21
2664
2
mai 20
12231