跳至內容
選單
此問題已被標幟
5100 瀏覽次數

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
12月 24
1480
1
3月 23
6669
2
4月 22
4120
0
10月 21
2653
2
5月 20
12225