Hi !
I'm modifying the Product Labels view in Odoo V.0. I'd like to insert pictures linked to the activation of new fields I've created.
Can you tell me where the images are stored so I can refer to this URL or something else in my view ?
Thanks !
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi !
I'm modifying the Product Labels view in Odoo V.0. I'd like to insert pictures linked to the activation of new fields I've created.
Can you tell me where the images are stored so I can refer to this URL or something else in my view ?
Thanks !
All attachments in odoo are stored under the table ir_attachments. Here odoo stores the res_model, res_id, its binary data, then the file type and so on.
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 10 24
|
706 | ||
|
1
thg 4 24
|
1211 | ||
|
0
thg 10 23
|
908 | ||
|
0
thg 3 23
|
1287 | ||
|
0
thg 1 25
|
2074 |
product images stored in DB as Binary and you can find it in image_medium field under Product.Template model
<img ... > </img>
</t>
try this
Store it in your module folder under static/src/img and you reference it from XML
<img src='/module name/static/src/img/image_name />