Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Sort groups asc/desc

By
John Doe
on 9/23/16, 9:45 AM 226 views

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?

Artem
on 9/23/16, 10:51 AM
0
John Doe
On 9/29/16, 5:53 AM

By context which I wrote above.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/23/16, 9:45 AM
Seen: 226 times
Last updated: 9/29/16, 5:53 AM