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
- Comptabilitat
- Inventari
- PoS
- Project
- MRP
This question has been flagged
1
Respondre
6492
Vistes
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
0
d’ag. 24
|
3071 | ||
|
0
de maig 22
|
2845 | ||
|
0
de maig 23
|
85 | ||
|
0
de juny 19
|
2869 | ||
|
0
de març 15
|
3661 |