Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5123 Lượt xem

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. 
Ảnh đại diện
Huỷ bỏ

Hello Nanda, Did you find a solution?

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 24
1494
1
thg 3 23
6707
2
thg 4 22
4150
0
thg 10 21
2672
2
thg 5 20
12248