Odoo Help

3

How to sort on a functional field in 7.0 ?

By
Yves Hoyos
on 9/9/13, 12:50 PM 4,449 views

Hi,

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 ?

Thanks

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
3
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.

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: 9/9/13, 12:50 PM
Seen: 4449 times
Last updated: 3/16/15, 8:10 AM