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
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
1
返信
7359
ビュー
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
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
0
8月 24
|
3614 | ||
|
0
5月 22
|
3251 | ||
|
0
5月 23
|
86 | ||
|
0
6月 19
|
3290 | ||
|
0
3月 15
|
3981 |