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:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
4715
瀏覽次數
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
0
5月 20
|
4141 | ||
|
0
3月 15
|
4205 | ||
|
1
3月 25
|
984 | ||
|
1
5月 23
|
2818 | ||
|
5
12月 22
|
3014 |