跳至內容
選單
此問題已被標幟
3 回覆
1360 瀏覽次數

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

頭像
捨棄
最佳答案

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.

頭像
捨棄
最佳答案

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

頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
6月 23
2910
3
6月 20
8811
0
4月 16
6053
5
4月 23
15772
6
9月 22
67216