Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
8612 Visualizações

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.


Avatar
Cancelar

More details please. How do you get the groups?

Autor Melhor resposta

By context which I wrote above.

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
jan. 24
15322
0
set. 21
3386
0
fev. 21
2680
3
jul. 25
9261
1
mai. 25
1477