Odoo Help


Sort groups asc/desc

John Doe
on 9/23/16, 9:45 AM 864 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'}"/>

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?

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

By context which I wrote above.

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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