Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3724 Zobrazení

Hi guys,

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

Please help.


Regards,

Avatar
Zrušit
Autor

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

Nejlepší odpověď

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
Zrušit
Autor

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,

Related Posts Odpovědi Zobrazení Aktivita
1
lis 15
11795
2
srp 23
278
0
bře 23
207
1
bře 22
2245
0
čvn 17
3653