Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
1321 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มิ.ย. 23
2893
3
มิ.ย. 20
8784
0
เม.ย. 16
6041
5
เม.ย. 23
15749
Press a button and download a file, how? แก้ไขแล้ว
6
ก.ย. 22
67149