Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
5687 Переглядів

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
992
1
січ. 24
1932
0
серп. 16
3334
0
бер. 25
1149
2
вер. 24
1183