跳至內容
選單
此問題已被標幟
2 回覆
3722 瀏覽次數

Hi guys,

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

Please help.


Regards,

頭像
捨棄
作者

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

最佳答案

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>

頭像
捨棄
作者

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,

相關帖文 回覆 瀏覽次數 活動
1
11月 15
11793
2
8月 23
278
0
3月 23
207
1
3月 22
2245
0
6月 17
3653