Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
8630 มุมมอง

Is there a chance to sort groups by condition?

My problem:

<xpath expr="//filter[@string='Type']" position="after">                    
<filter string="Days" name="days_group" domain="[]" context="{'group_by':'date:day'}"/>
<filter string="Months" name="days_group" domain="[]" context="{'group_by':'date:month'}"/>
</xpath>

Grouped records are in descending order which is ok for me but i want to sort groups in the same way.


อวตาร
ละทิ้ง

More details please. How do you get the groups?

ผู้เขียน คำตอบที่ดีที่สุด

By context which I wrote above.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Group by on field of a related model. แก้ไขแล้ว
2
ม.ค. 24
15359
0
ก.ย. 21
3386
0
ก.พ. 21
2680
3
ก.ค. 25
9326
1
พ.ค. 25
1515