İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
1339 Görünümler

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

Avatar
Vazgeç
En İyi Yanı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.

Avatar
Vazgeç
En İyi Yanı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

Avatar
Vazgeç
En İyi Yanı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.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Haz 23
2897
3
Haz 20
8788
0
Nis 16
6044
5
Nis 23
15753
6
Eyl 22
67155