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

In odoo website we can switch views from grid to list view for products list. But one view gets fixed for such case.

How can we have both views for the product list so that we can toggle views?

Is there any built in function or should we develop it?

아바타
취소

Not built in, but easy to implément

작성자

Can you suggest how? I don't want to load the whole page when views changed. Thanks

작성자

I have found two views:

<div class="col-md-12" id="products_grid">

<table width="100%">

............

<t t-foreach="products" t-as="product">

<div class="oe_product oe_list oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">

</div>

How to toggle them?

관련 게시물 답글 화면 활동
1
2월 25
1096
1
1월 24
2052
0
8월 16
3413
0
3월 25
1314
2
9월 24
1269