Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5542 มุมมอง

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?

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 25
829
1
ม.ค. 24
1736
0
ส.ค. 16
3210
0
มี.ค. 25
971
2
ก.ย. 24
988