تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5104 أدوات العرض

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?

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
ديسمبر 24
1486
1
مارس 23
6678
2
أبريل 22
4126
0
أكتوبر 21
2664
2
مايو 20
12231