I want to change product image on hover. I have the field "gifpath" in products. This is the code from the website_sale module for image
```
<a t-att-href="product_href" class="d-block h-100" itemprop="url">
<span t-field="product.image_1920"
t-options="{'widget': 'image', 'preview_image': 'image_1024' if product_image_big else 'image_256'}"
class="d-flex h-100 justify-content-center align-items-center"/>
</a>
```
And I want to change that on hover to
```
t-options="{'widget': 'image', 'preview_image': 'gifpath'}"
```
Main problem here is that, field is binary. And image is stored in the database, so using javascript will be very hard, because I don't have the image path for ```<img src```
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
4699
Weergaven
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
0
mei 20
|
4125 | ||
|
0
mrt. 15
|
4191 | ||
|
1
mrt. 25
|
954 | ||
|
1
mei 23
|
2796 | ||
|
5
dec. 22
|
2988 |