Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5092 Представления

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
1472
1
мар. 23
6648
2
апр. 22
4103
0
окт. 21
2638
2
мая 20
12219