تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3813 أدوات العرض

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
نوفمبر 15
11959
2
أغسطس 23
278
0
مارس 23
207
1
مارس 22
2346
0
يونيو 17
3738