Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
5133 Переглядів

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
1512
1
бер. 23
6723
2
квіт. 22
4173
0
жовт. 21
2678
2
трав. 20
12259