Odoo Help


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.


How to sort on a functional field in 7.0 ?

Yves Hoyos
on 9/9/13, 12:50 PM 3,303 views


I have created a functional field, and I would like to be able to sort it (if the header is clicked) in the list view. But I don't know how ? I try to check the args given to the field's function, and to the search method, but the order parameter is never given.

And in the tree view, it's not possible to sort on a functional field.

Any ideas ?


I was expecting this answer... I suppose there is no other way, even with some (or lot of) python code ?

Thanks Francesco.

Yves Hoyos
on 9/9/13, 2:14 PM

I think no. There is a system to seach function field but not one to sort it (i know this. I hope I have wrong)

Francesco OpenCode
on 9/9/13, 2:31 PM

Francesco OpenCode

--Francesco OpenCode--
| 5 7 9
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo (OpenERP) Modules Developer LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode
On 9/9/13, 1:59 PM

You can sort a function field if it has store parameter on True. This because the query that OpenERP does to search the values are not applicable if the field isn't in the database. A function field with store=False doesn't exist in the database.

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)


Asked: 9/9/13, 12:50 PM
Seen: 3303 times
Last updated: 3/16/15, 8:10 AM