Skip to Content
Menu
This question has been flagged
1 Reply
6423 Views

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.

Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
0
Aug 24
3045
0
May 22
2824
0
May 23
85
0
Jun 19
2846
0
Mar 15
3649