Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3805 Lượt xem

Hi guys,

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

Please help.


Regards,

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

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>

Ảnh đại diện
Huỷ bỏ
Tác giả

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,

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 15
11954
2
thg 8 23
278
0
thg 3 23
207
1
thg 3 22
2344
0
thg 6 17
3737