Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
5091 Widoki

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. 
Awatar
Odrzuć

Hello Nanda, Did you find a solution?

Powiązane posty Odpowiedzi Widoki Czynność
0
gru 24
1471
1
mar 23
6646
2
kwi 22
4103
0
paź 21
2638
2
maj 20
12219