Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
3731 Näkymät

Hi guys,

Is there a way to implement the grouping feature that Odoo has to the front end website ?

Please help.


Regards,

Avatar
Hylkää
Tekijä

What I mean is the group by rows in the table ( so it's collapsing feature etc )

Paras vastaus

you have to create a view record, inheriting the search view you want to add.

In that record just put,

<xpath expr="/search/group/filter[@string='THE_STRING_OF_EXISTING_GROUP_BY_FILTER']" position="after">

<filter string="YOUR_FILTER_NAME" domain="[]" context="{'group_by':'YOUR_FIELD_TO_GROUP_BY'}"/>

</xpath>

Avatar
Hylkää
Tekijä

Hi Juan,

I think my question is quite misleading.

Your answer is for the backend site.

What I mean is, how to implement the grouping feature for the website module ?

Regards,

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
marrask. 15
11812
2
elok. 23
278
0
maalisk. 23
207
1
maalisk. 22
2249
0
kesäk. 17
3658