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

How do I create a path to a pdf file in odoo 17?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

There is a way to do this without code. It does, however, leave some unfortunate visual artifacts. I am hoping that this will be seen as a bug and fixed.

Here is how to try it yourself:

Select a Button while editing, and then on the right side scroll down to "Inline Text" and then select "Insert Media", you can upload a document that will be downloaded upon click.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You insert your pdf in the EDM of odoo, then you paste the sharing link of this document from your EDM into your button. So people will be sent to the pdf

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Tentiana,

Could you please add a new button and link it to this type of URL?

t-attf-href="/web/content/#{attachment.id}?download=true&access_token=#{attachment.access_token}"

You can search for Odoo addons using this URL.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 23
2908
3
thg 6 20
8803
0
thg 4 16
6050
5
thg 4 23
15762
6
thg 9 22
67176