Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5351 มุมมอง

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. 
อวตาร
ละทิ้ง

Hello Nanda, Did you find a solution?

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ธ.ค. 24
1925
How to set attachments to public? แก้ไขแล้ว
1
มี.ค. 23
7221
2
เม.ย. 22
4708
0
ต.ค. 21
3011
2
พ.ค. 20
12648