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.
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
cze 25
|
2669 | ||
|
0
paź 24
|
1157 | ||
|
1
kwi 24
|
1653 | ||
|
0
paź 23
|
1206 | ||
|
0
mar 23
|
1593 |
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 />