콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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'}"

```


The main problem here is that field is binary. And the image is stored in the database, so using javascript will be very hard because I don't have the image path for ```<img src```

And I haven't found any event listener in XML for odoo.

아바타
취소
관련 게시물 답글 화면 활동
0
10월 24
4711
1
3월 25
980
1
5월 23
2817
0
6월 21
2725
1
4월 17
4776