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

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
1月 24
15329
0
9月 21
3386
0
2月 21
2680
3
7月 25
9268
1
5月 25
1481