I want to show the attachments on the List View, how can we achieve the same?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухгалтерия
- Склад
- PoS
- Проекты
- MRP
Этот вопрос был отмечен
Hi,
You can also use widget="many2many_binary" for to show multiple attachments.
For eg:
attachment_ids = fields.Many2many('ir.attachment',string='Image/PDF')In tree view provide the widget
<field name="attachment_ids" widget="many2many_binary"/>
Regards
Hi Strangpoints,
As you want to preview the attachment file on the List view, then please add the below widget into the filed of the list view. Then you can also preview the view on List View.
widget="attachment"
example :
In this example, attachment_field is the name of the field that you want to add the file upload widget to in the tree view.
Note: Please add the attachment=True in python model binary fields and you must need to use the below modules that have function to allow preview the files.
https://apps.odoo.com/apps/modules/15.0/ks_binary_file_preview/
ks_binary_file_preview | Odoo Apps Storeapps.odoo.com
If you need any assistance or support, please don't hesitate to reach out. Our team is always here to help!"
Regards,
Ksolves Team!
Не оставайтесь в стороне – присоединяйтесь к обсуждению!
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
|
0
нояб. 25
|
3 | ||
|
|
1
авг. 25
|
1558 | ||
|
|
5
мая 23
|
16368 | ||
|
|
2
дек. 23
|
6665 | ||
|
|
1
нояб. 22
|
3733 |