I have a web application for my customers, which consumes Odoo data through endpoints, I want in an endpoint to get the download url of files related to an invoice, so they can be downloaded from my website which can be accessed by my customers.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
1
Rispondi
7099
Visualizzazioni
HI,
First you need to make public=True for that record in ir.attachment.
And then the link is like "/web/content/{attachment.id}?download=true" so when someone access this url it download the content in that attachment record.
Eg: https://www.odoo.com/web/content/123?download=true
Or from attachment, you get the url from local_url variable
Regards
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
0
ago 24
|
3463 | ||
|
0
mag 22
|
3129 | ||
|
0
mag 23
|
86 | ||
|
0
giu 19
|
3174 | ||
|
0
mar 15
|
3868 |