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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
7076
Widoki
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
sie 24
|
3455 | ||
|
0
maj 22
|
3119 | ||
|
0
maj 23
|
86 | ||
|
0
cze 19
|
3168 | ||
|
0
mar 15
|
3862 |