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
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
6479
Lượt xem
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
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 8 24
|
3068 | ||
|
0
thg 5 22
|
2845 | ||
|
0
thg 5 23
|
85 | ||
|
0
thg 6 19
|
2862 | ||
|
0
thg 3 15
|
3660 |