Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
7102 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
aug. 24
3464
0
mai 22
3129
0
mai 23
86
0
iun. 19
3178
0
mar. 15
3872