Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
12386 Lượt xem

How can i preview the attached files like pdf/docs in a browser from my custom model and can download it.

Ảnh đại diện
Huỷ bỏ

There are many Custom modules available for the same in the Odoo app store for free, can you make a search in Odoo store and see

Câu trả lời hay nhất

Hello Nikunja,

If you want to preview PDF document then there is a default widget. Just apply in your binary field:

widget="pdf_viewer"

Hope it will helpful for you.

Thanks and regards

Haresh Kansara

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks Haresh,

how can i show the pdf in a new tab by clicking a button ? please help

Thank You! That's help me

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 21
4091
1
thg 9 24
1255
2
thg 12 23
14658
0
thg 10 23
33
3
thg 10 23
788