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
- Kế toán
- Tồn kho
- PoS
- Dự án
- MRP
Câu hỏi này đã bị gắn cờ
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!
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
|
0
thg 11 25
|
3 | ||
|
|
1
thg 8 25
|
1560 | ||
|
|
5
thg 5 23
|
16371 | ||
|
|
2
thg 12 23
|
6671 | ||
|
|
1
thg 11 22
|
3733 |