Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7047 Lượt xem
Hi, is it possible to create a public url for images in Odoo?

I have this url myodoo:port/web/image?model=product&id=1&field=img, but I can only see the image if I am logged in Odoo.

Do you know if a route can be generated so that everyone can see the image?

Thank you


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You can use by overriding create method and setting public to True, see:

https://www.odoo.com/forum/help-1/how-to-set-attachments-to-public-201483


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 22
3002
0
thg 5 21
1643
1
thg 3 24
6982
0
thg 5 21
2038
2
thg 5 21
9166