Odoo Help

0

Default sorting column/field in tree views?

By
Bart Criel
on 3/4/15, 7:29 AM 4,125 views

I created a tree view in xml. How can I specify the field that should be used as sorting field (and add if it should be ascending or descending)? Right now, I think the database ID is used, but I didn't specify that.

 

1

Hi,

Odoo is taking "_order" member to manage default order by. So, you have to just manage "_order" member of your model. You will get all data in your list according to that order. thats it. I hope it will help you. 

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.

Register

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)

Stats

Asked: 3/4/15, 7:29 AM
Seen: 4125 times
Last updated: 3/16/15, 8:10 AM