Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5782 Visualizzazioni

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?

Avatar
Abbandona

Not built in, but easy to implément

Autore

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

Autore

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?

Post correlati Risposte Visualizzazioni Attività
1
feb 25
1053
1
gen 24
2032
0
ago 16
3372
0
mar 25
1258
2
set 24
1240