Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
1621 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
giu 23
3098
3
giu 20
9069
0
apr 16
6190
5
apr 23
16035
6
set 22
67840