Odoo Help

0

1
2 Answers
4
Géry Debongnie (ged)
2014/12/22 10:37

There is a default_order attribute

https://www.odoo.com/documentation/8.0/reference/views.html#lists

1
John
2014/12/19 14:43

You can do this in your module's action code (or inherit an already existing action). 

Set it in the context with 'order'.  To order it by the Status field for instance (which is 'state' in the database):

 <record id="action_unique_identifier" model="ir.actions.act_window">
             <!-- a bunch of fields -->
            <field name="context">{'order': 'state'}</field>

 

Ask a Question
Writer
734
Eric
Keep Informed
2 follower(s)
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now