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.

1

same object how to sort different in two or more list view?

By
Prakash
on 3/6/14, 5:33 AM 1,111 views

In openerp same object used in different List view is it possible to change sorting order (same object) in different list view?.

For Example,

I used "patient.procedure" object in different views

In the Patient Procedure first List view sorting want to shows the order _order = "state desc, procedure_date desc

And In the Patient Procedure second List view sorting want to shows the order _order = "case_no asc, state asc"

how to shows same object in different sorting?...

I tried using inherit object but it changes affect both view...

Thanks

1
Gregor Heger
On 3/4/15, 6:29 AM

I found how to do it: There is a new feature in odoo 8 which enables to override the default ordering in a listview:

<tree default_order="sequence,name desc">

Found in https://www.odoo.com/documentation/8.0/reference/views.html

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

0 follower(s)

Stats

Asked: 3/6/14, 5:33 AM
Seen: 1111 times
Last updated: 3/16/15, 8:10 AM